Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) GetConfig() ([]proto.AgentConfig, []error)
- func (m *Manager) Handle(cmd *proto.Cmd) *proto.Reply
- func (m *Manager) RegisterService(serviceName string, service Service) (err error)
- func (m *Manager) Start() error
- func (m *Manager) Status() map[string]string
- func (m *Manager) Stop() error
- type Service
Constants ¶
View Source
const (
SERVICE_NAME = "sysinfo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { sync.Mutex // This manager is single threaded, this lock protects usage from multiple goroutines // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) RegisterService ¶
Click to show internal directories.
Click to hide internal directories.