Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
BotUsername string
BotIconEmoji string
Client SlackClient
}
func (*Notifier) Notify ¶
func (n *Notifier) Notify(ctx context.Context, input NotifyInput) (*NotifyOutput, error)
type NotifyInput ¶
type NotifyOutput ¶
type SlackClient ¶
type SlackClient interface {
UpdateMessageContext(ctx context.Context, channelID string, timestamp string, options ...slack.MsgOption) (_chan string, _timestamp string, _text string, err error)
PostMessageContext(ctx context.Context, channelID string, options ...slack.MsgOption) (_chan string, _timestamp string, err error)
}
Click to show internal directories.
Click to hide internal directories.