Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentMonitor ¶
type AgentMonitor struct {
// contains filtered or unexported fields
}
func NewAgentMonitor ¶
func NewAgentMonitor(chnl *channel.Channel, function func(context.Context, string, string) ([]*pbcom.Notification, error)) *AgentMonitor
func (*AgentMonitor) AddAgent ¶
func (n *AgentMonitor) AddAgent(locationOrGroup, agent string) (err error)
AddAgent adds a corresponding callback to be called when a notification comes in for the corresponding operation
func (*AgentMonitor) RemoveAgent ¶
func (n *AgentMonitor) RemoveAgent(agent string) (err error)
RemoveAgent
func (*AgentMonitor) Stop ¶
func (n *AgentMonitor) Stop() (err error)
Stop - the agent monitor and the corresponding goroutines
type NotificationMonitor ¶
type NotificationMonitor struct {
// contains filtered or unexported fields
}
func NewNotificationMonitor ¶
func NewNotificationMonitor(src, dst string, chnl *channel.Channel) *NotificationMonitor
Click to show internal directories.
Click to hide internal directories.