notification

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

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

Notification holds information on all the supported channels require to communicate with the channel API.

func GetNotification

func GetNotification(ctx context.Context, logger log.Logger, client slack.SlackClient, notificationConfig *config.Notification) *Notification

func NewNotification

func NewNotification(ctx context.Context, logger log.Logger, notificationConfig *config.Notification) (*Notification, error)

NewNotification will return Notification with the initialized channel information.

func (*Notification) Notify

func (n *Notification) Notify(msg string) error

Notify sends a message to the available channels and returns combined error from different channels if any.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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