\Dreamcat\ConfigClient\ApiApolloServerInterface

Apollo配置中心服务器接口

Summary

Methods
Constants
getConfig()
notifications()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getConfig()

getConfig(string  $appid, string  $clusterName, string  $namespaceName, string  $ip = null, string  $releaseKey = null) : \Dreamcat\ConfigClient\Popo\ApolloConfigResult

获取配置

Parameters

string $appid

应用的appId

string $clusterName

集群名

string $namespaceName

Namespace的名字

string $ip

应用部署的机器ip

string $releaseKey

上一次的releaseKey

Returns

\Dreamcat\ConfigClient\Popo\ApolloConfigResult

notifications()

notifications(string  $appid, string  $clusterName, array  $notifications) : array

应用感知配置更新

Parameters

string $appid

应用ID

string $clusterName

集群名

array $notifications

键是namespace,值是最新的通知id

Returns

array —

有变化的情况,键是namespace,值是最新的通知id