Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNotifier ¶
func AddNotifier(uuid string, length int, time_tick time.Duration, time_out time.Duration) (chan int, chan int)
Send events about this uuid to buffered channel Also implement timer channel to simplify workflow
func DelNotifier ¶
func DelNotifier(uuid string)
Types ¶
type ExecResult ¶
type ExecResult struct { ID string `json:"id"` Processed bool `json:"processed"` // Was this command ever been processed? Command string `json:"command"` Args []string `json:"args"` Status int `json:"status"` StdOut string `json:"stdout"` // base64-encoded StdErr string `json:"stderr"` }
Command execution result
type Report ¶
type Report struct { ClientID string `json:"client_id"` MSG string `json:"msg"` // message.Topic, message.Partition, message.Offset ERROR string `json:"error,omitempty"` UUID string `json:"uuid,omitempty"` TAG string `json:"tag,omitempty"` PRODUCER string `json:"producer,omitempty"` RESULTS []*ExecResult `json:"exec,omitempty"` TimeStamp string `json:"timestamp,omitempty"` }
Click to show internal directories.
Click to hide internal directories.