Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIEndPoint ¶
APIEndPoint is exported
func (*APIEndPoint) DoEvent ¶
func (endpoint *APIEndPoint) DoEvent(event *Event, data interface{})
DoEvent is exported
type EndPoint ¶
type EndPoint struct { Name string `yaml:"name"` URL string `yaml:"url"` Enabled bool `yaml:"enabled"` Sender string `yaml:"sender"` Headers http.Header `yaml:"headers"` Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` }
EndPoint is exported
type Event ¶
type Event struct { ID string Type EventType Name string Error error ContactInfo string Endpoints []IEndPoint // contains filtered or unexported fields }
Event is exported
type GroupMeta ¶
type GroupMeta struct { MetaID string MetaName string Location string GroupID string GroupName string Instances int Image string ContactInfo string Engines []*Engine Containers []*Container }
GroupMeta is exported
type IEndPoint ¶
type IEndPoint interface {
DoEvent(event *Event, data interface{})
}
IEndPoint is exported sender endPoint interface
func NewSMTPEndpoint ¶
NewSMTPEndpoint is exported
type INotifyEndPointFactory ¶
type INotifyEndPointFactory interface { CreateAPIEndPoint(endpoint EndPoint) IEndPoint CreateSMTPEndPoint(endpoint EndPoint) IEndPoint }
INotifyEndPointFactory is exported
type Notifications ¶
type Notifications struct {
EndPoints []EndPoint `yaml:"endpoints,omitempty"`
}
Notifications is exported
type NotifyEndPointFactory ¶
type NotifyEndPointFactory struct {
INotifyEndPointFactory
}
NotifyEndPointFactory is exported
func (*NotifyEndPointFactory) CreateAPIEndPoint ¶
func (factory *NotifyEndPointFactory) CreateAPIEndPoint(endpoint EndPoint) IEndPoint
CreateAPIEndPoint is exported
func (*NotifyEndPointFactory) CreateSMTPEndPoint ¶
func (factory *NotifyEndPointFactory) CreateSMTPEndPoint(endpoint EndPoint) IEndPoint
CreateSMTPEndPoint is exported
type NotifySender ¶
NotifySender is exported
func NewNotifySender ¶
func NewNotifySender(siteurl string, endPoints []EndPoint) *NotifySender
NewNotifySender is exported
func (*NotifySender) AddGroupEnginesWatchEvent ¶
func (sender *NotifySender) AddGroupEnginesWatchEvent(description string, watchGroup *WatchGroup)
AddGroupEnginesWatchEvent is exported
func (*NotifySender) AddGroupMetaContainersEvent ¶
func (sender *NotifySender) AddGroupMetaContainersEvent(description string, err error, groupMeta *GroupMeta)
AddGroupMetaContainersEvent is exported
type SMTPEndPoint ¶
SMTPEndPoint is exported
func (*SMTPEndPoint) DoEvent ¶
func (endpoint *SMTPEndPoint) DoEvent(event *Event, data interface{})
DoEvent is exported
Click to show internal directories.
Click to hide internal directories.