providers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(providerOptions *ProviderOptions, options *types.Options) (*Client, error)

func (*Client) Send

func (p *Client) Send(message string) error

type Provider

type Provider interface {
	Send(message, CliFormat string) error
}

Provider is an interface implemented by providers

type ProviderOptions

type ProviderOptions struct {
	Slack    []*slack.Options    `yaml:"slack,omitempty"`
	Discord  []*discord.Options  `yaml:"discord,omitempty"`
	Pushover []*pushover.Options `yaml:"pushover,omitempty"`
	SMTP     []*smtp.Options     `yaml:"smtp,omitempty"`
	Teams    []*teams.Options    `yaml:"teams,omitempty"`
	Telegram []*telegram.Options `yaml:"telegram,omitempty"`
	Custom   []*custom.Options   `yaml:"custom,omitempty"`
}

ProviderOptions is configuration for notify providers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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