providers

package
v0.0.0-...-9ce868f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 8 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 {
	SMTP   []*smtp.Options   `yaml:"smtp,omitempty"`
	Gotify []*gotify.Options `yaml:"gotify,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