Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentClient ¶
AgentClient stores the information of agent client
func NewAgentClient ¶
func NewAgentClient(host, port string) *AgentClient
NewAgentClient creates the agent client
func (*AgentClient) UpdateCanary ¶
func (agent *AgentClient) UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders, version int64) error
UpdateCanary updates canary.
func (*AgentClient) UpdateService ¶
func (agent *AgentClient) UpdateService(newService *spec.Service, version int64) error
UpdateService updates service.
type AgentInterface ¶
type AgentInterface interface { UpdateService(newService *spec.Service, version int64) error UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders, version int64) error }
AgentInterface is the interface operate the agent client
Click to show internal directories.
Click to hide internal directories.