Documentation ¶
Index ¶
- Constants
- Variables
- func LoadConfig() ([]byte, error)
- type Agent
- func (agent *Agent) AllStatus() map[string]string
- func (agent *Agent) GetAllConfigs() (interface{}, []error)
- func (agent *Agent) GetConfig() ([]proto.AgentConfig, []error)
- func (agent *Agent) GetDefaults(cmd *proto.Cmd) (interface{}, []error)
- func (agent *Agent) Handle(cmd *proto.Cmd) *proto.Reply
- func (agent *Agent) Run() error
- func (agent *Agent) Status() map[string]string
- type CollectInfoData
Constants ¶
View Source
const ( DEFAULT_KEEPALIVE = 76 DEFAULT_LISTEN = "127.0.0.1:9000" )
View Source
const ( CMD_QUEUE_SIZE = 10 STATUS_QUEUE_SIZE = 10 MAX_ERRORS = 3 )
Variables ¶
View Source
var (
ErrStop = errors.New("received Stop command")
)
Functions ¶
func LoadConfig ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) GetAllConfigs ¶
type CollectInfoData ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.