notifiers

package
v0.7.6-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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
	Workspaces []slack.SlackWorkspace `mapstructure:"workspaces" validate:"required_if=Provider slack,dive"`

	// 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