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) UpdateAgentConfig ¶ added in v1.5.1
func (agent *AgentClient) UpdateAgentConfig(config *AgentConfig) error
UpdateAgentConfig updates agent config.
type AgentConfig ¶ added in v1.5.1
type AgentConfig struct { spec.Service `yaml:",inline"` Headers string `yaml:"easeagent.progress.forwarded.headers"` Reporter *AgentReporter `yaml:"reporter.outputServer"` }
AgentConfig is the config pushed to agent.
type AgentInterface ¶
type AgentInterface interface {
UpdateAgentConfig(config *AgentConfig) error
}
AgentInterface is the interface operate the agent client.
type AgentReporter ¶ added in v1.5.1
type AgentReporter struct { ReporterTLS *AgentReporterTLS `yaml:"tls"` AppendType string `yaml:"appendType"` BootstrapServer string `yaml:"bootstrapServer"` Username string `yaml:"username"` Password string `yaml:"password"` }
AgentReporter is the basic config for agent reporter.
Click to show internal directories.
Click to hide internal directories.