Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticSearch ¶ added in v0.7.0
type ElasticSearch struct { Username string Password string Server string Index string Shards int Replicas int Type string }
ElasticSearch contains auth cred and index setting
func (*ElasticSearch) SendEvent ¶ added in v0.7.0
func (e *ElasticSearch) SendEvent(event events.Event) (err error)
SendEvent sends event notification to slack
func (*ElasticSearch) SendMessage ¶ added in v0.7.0
func (e *ElasticSearch) SendMessage(msg string) error
SendMessage sends message to slack channel
type Mattermost ¶ added in v0.7.0
Mattermost contains server URL and token
func (*Mattermost) SendEvent ¶ added in v0.7.0
func (m *Mattermost) SendEvent(event events.Event) error
SendEvent sends event notification to Mattermost
func (*Mattermost) SendMessage ¶ added in v0.7.0
func (m *Mattermost) SendMessage(msg string) error
SendMessage sends message to Mattermost channel
type Notifier ¶
Notifier to send event notification on the communication channels
func NewElasticSearch ¶ added in v0.7.0
NewElasticSearch returns new Slack object
func NewMattermost ¶ added in v0.7.0
NewMattermost returns new Mattermost object
Click to show internal directories.
Click to hide internal directories.