Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Monitor Monitor
Persistor Persistor
App ExitSignalApp
Username string
UserVersion string
AppID string
MacHash string
Encoding Encoding
}
Config provides parameters needed by a Converter.
type Converter ¶
type Converter struct {
Config
// contains filtered or unexported fields
}
Converter converts a stream of agent.Message to a stream of broker.Message.
func NewConverter ¶
func NewConverter(cfg Config, in ...agent.MessageSource) Converter
NewConverter returns a converter for the given input streams that uses the given persistor and app.
type ExitSignalApp ¶
type ExitSignalApp interface {
AgentVersion() string
CheckSum() string
ExitStatus() int
Signal() string
}
ExitSignalApp is an App that has a signal and exit status.
type MessageSource ¶
MessageSource is a source of agent messages.
Click to show internal directories.
Click to hide internal directories.