notifiers

package
v0.7.4-alpha.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderTypeSlack = "slack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Notify([]domain.Notification) []error
}

func NewClient

func NewClient(config *Config) (Client, error)

type Config

type Config struct {
	Provider string `mapstructure:"provider" validate:"omitempty,oneof=slack"`

	// slack
	AccessToken string `mapstructure:"access_token" validate:"required_if=Provider slack"`

	// custom messages
	Messages domain.NotificationMessages
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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