Documentation ¶
Index ¶
Constants ¶
View Source
const (
ReconnectSleepTime = 10 * time.Second
)
View Source
const (
ReturnExpire = 300
)
Variables ¶
View Source
var ( Branch = "{branch}" Revision = "{revision}" Dirty = "{dirty}" )
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.
Click to show internal directories.
Click to hide internal directories.