Versions in this module Expand all Collapse all v1 v1.0.0 Apr 17, 2016 Changes in this version + const CMD_QUEUE_SIZE + const DEFAULT_KEEPALIVE + const DEFAULT_LISTEN + const DEFAULT_PIDFILE + const MAX_ERRORS + const MIN_SUPPORTED_MYSQL_VERSION + const STATUS_QUEUE_SIZE + var ErrRestart = errors.New("received Restart command") + var ErrStop = errors.New("received Stop command") + func JSONResponse(w http.ResponseWriter, statusCode int, v interface{}) + func LoadConfig() ([]byte, error) + type Agent struct + func NewAgent(config *pc.Agent, logger *pct.Logger, client pct.WebsocketClient, addr string, ...) *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() (interface{}, []error) + func (agent *Agent) Handle(cmd *proto.Cmd) *proto.Reply + func (agent *Agent) Run() error + func (agent *Agent) Status() map[string]string + type LocalInterface struct + func NewLocalInterface(addr string, agent *Agent, repo *instance.Repo) *LocalInterface + func (lo *LocalInterface) Run()