Documentation
¶
Index ¶
Constants ¶
View Source
const (
ReconnectSleepTime = 10 * time.Second
)
View Source
const (
RedisStatsQueue = "agent.stats"
)
View Source
const (
ReturnExpire = 300
)
Variables ¶
This section is empty.
Functions ¶
func StartSinks ¶
func StartSinks(mgr *pm.PM, sinks map[string]SinkClient)
StartSinks starts the long polling routines and feed the manager with received commands
Types ¶
type LocalCmd ¶
type LocalCmd struct {
Sync bool `json:"sync"`
Content json.RawMessage `json:"content"`
}
type LocalResult ¶
type SinkClient ¶
type SinkClient interface {
GetNext(command *core.Command) error
Respond(result *core.JobResult) error
}
func NewSinkClient ¶
func NewSinkClient(cfg *settings.SinkConfig, id string, responseQueue ...string) (SinkClient, error)
NewSinkClient gets a new sink connection with the given identity. Identity is used by the sink client to introduce itself to the sink terminal.
type StatsFlusher ¶
StatsBuffer implements a buffering and flushing mechanism to buffer statsd messages that are collected via the process manager. Flush happens when buffer is full or a certain time passes since last flush.
The StatsBuffer.Handler should be registers as StatsFlushHandler on the process manager object.
func NewRedisStatsBuffer ¶
Click to show internal directories.
Click to hide internal directories.