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) UpdateGlobalTransmission ¶ added in v1.4.1
func (agent *AgentClient) UpdateGlobalTransmission(transmission *spec.GlobalTransmission) error
UpdateGlobalTransmission updates GlobalTransmission.
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 UpdateGlobalTransmission(transmission *spec.GlobalTransmission) error }
AgentInterface is the interface operate the agent client
Click to show internal directories.
Click to hide internal directories.