Help us shape the future of Go! Take the 2026 Go Developer Survey

mattermost

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 7 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 New

func New() *Mattermost

Init prepares Mattermost configuration

func (*Mattermost) SendMessage

func (m *Mattermost) SendMessage(text string)

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"`
}

type MattermostMessageAttachement

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

Jump to

Keyboard shortcuts

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