pkg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	Message         string
	Channel         string
	Timestamp       string
	ThreadTimestamp string
	Client          SlackClient
}

Notifier notifies.

func NewNotifier

func NewNotifier(message string, channel string, timestamp string, threadTimestamp string, client SlackClient) *Notifier

NewNotifier creates a new Slack notifier.

func (*Notifier) Notify

func (n *Notifier) Notify() error

Notify notifies.

type SlackClient

type SlackClient interface {
	PostMessage(channelID string, options ...slack.MsgOption) (string, string, error)
}

SlackClient defines a client for slack.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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