Documentation ¶
Overview ¶
Package server handles the tcp socket api for interacting with clients(relays). It also handles polling clients based on registered tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MissingPublisher = errors.New("A publisher is needed")
)
Functions ¶
func PollAll ¶
func PollAll()
PollAll polls all clients for registered collectors(stats to be collected)
func StartPolling ¶
StartPolling polls clients at preconfigured interval. Examples:
StartPolling(nil, nil, 60, nil) StartPolling(nil, []string{"cpu"}, 1, ch) StartPolling([]string{"computer1", "computer2"}, []string{"cpu"}, 1, ch)
Types ¶
type Publisher ¶
type Publisher func(plexer.MessageSet) error
Click to show internal directories.
Click to hide internal directories.