mattermost

package
v0.0.0-...-32a469f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mattermost

type Mattermost struct {
	Channel  string
	Url      string
	Username string
}

Mattermost handler implements handler.Handler interface, Notify event to Mattermost channel

func (*Mattermost) Handle

func (m *Mattermost) Handle(e event.StatemonitorEvent)

Handle handles an event.

func (*Mattermost) Init

func (m *Mattermost) Init(c *config.Config) error

Init prepares Mattermost configuration

type MattermostMessage

type MattermostMessage struct {
	Channel      string                         `json:"channel"`
	Username     string                         `json:"username"`
	IconUrl      string                         `json:"icon_url"`
	Text         string                         `json:"text"`
	Attachements []MattermostMessageAttachement `json:"attachments"`
}

MattermostMessage struct for messages

type MattermostMessageAttachement

type MattermostMessageAttachement struct {
	Title string `json:"title"`
	Color string `json:"color"`
}

MattermostMessageAttachement for message attachments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL