mattermost

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	PostGroupMessage(chName string, m Message) error
}

func NewClient

func NewClient(o Config) (Client, error)

type Config

type Config struct {
	SiteUrl string
	//personal access token can use akun admin or bot token
	AccessToken string
	TeamName    string
}

type MattermostAdapter

type MattermostAdapter struct {
	Service *MattermostNotif
}

func (*MattermostAdapter) Init

func (ma *MattermostAdapter) Init() error

Port Adapter method

func (*MattermostAdapter) SendGroupMessage

func (ma *MattermostAdapter) SendGroupMessage(groupName string, msg notification.Message) error

type MattermostNotif

type MattermostNotif struct {
	Cfg *Config
}

func (*MattermostNotif) PostGroupMessage

func (c *MattermostNotif) PostGroupMessage(chName string, m Message) error

type Message

type Message struct {
	Title string
	Body  string
}

Jump to

Keyboard shortcuts

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