notify

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MAX_SLACK_ATTACHMENTS = 20 // the API technically supports 100 but after 20 they're "unreadable" according to Slack

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	Collect()
	Send() error
}

type SlackNotifier

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

func NewSlackNotifier

func NewSlackNotifier(ctx context.Context, cfg *config.Config, logger *logrus.Logger, cache cache.Cache) *SlackNotifier

func (*SlackNotifier) Collect

func (sn *SlackNotifier) Collect()

func (*SlackNotifier) IsValid

func (sn *SlackNotifier) IsValid() bool

func (*SlackNotifier) Send

func (sn *SlackNotifier) Send() error

func (*SlackNotifier) SlackSend

func (sn *SlackNotifier) SlackSend(user *slack.User, candidate []*mark.MarkedCandidate) error

Jump to

Keyboard shortcuts

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