notification

package
v1.398.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNotificationProvider

func GetNotificationProvider(typ string, appId string, receiver string, method string, title string) (notify.Notifier, error)

func NewTelegramProvider

func NewTelegramProvider(apiToken string, chatIdStr string) (notify.Notifier, error)

Types

type HttpNotificationClient added in v1.395.1

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

func NewCustomHttpProvider added in v1.395.1

func NewCustomHttpProvider(endpoint string, method string, paramName string) (*HttpNotificationClient, error)

func (*HttpNotificationClient) Send added in v1.395.1

func (c *HttpNotificationClient) Send(ctx context.Context, subject string, content string) error

Jump to

Keyboard shortcuts

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