slack

package
v0.0.0-...-8c11e3d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg interface {
	GetMsgOption() slack.MsgOption
}

Msg is a interface that can get slack msgOption

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier can send msg to slack

func New

func New(token, channel string) Notifier

New create a instance of Notifier

func (Notifier) Notify

func (n Notifier) Notify(msg Msg) error

Notify send a message to slack channel

Jump to

Keyboard shortcuts

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