slack

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	SendMessage(channel string, options ...slack.MsgOption) (string, string, string, error)
}

API is an interface of Slack API

type Slack

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

Slack represents a channel of type Slack

func New

func New(cfg slackCfg.Slack, logger *zap.Logger) (*Slack, error)

New creates new Slack channel

func (*Slack) Ignore added in v0.8.2

func (m *Slack) Ignore() bool

func (*Slack) Name

func (m *Slack) Name() string

Name returns the channel name

func (*Slack) Send

func (m *Slack) Send(mes *message.Message) error

Send message to the channel Slack

Jump to

Keyboard shortcuts

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