notification

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNotificationProvider

func GetNotificationProvider(typ string, clientId string, clientSecret string, clientId2 string, clientSecret2 string, appId string, receiver string, method string, title string, metaData string) (notify.Notifier, error)

func NewLarkProvider

func NewLarkProvider(webhookURL string) (notify.Notifier, error)

func NewWebpushProvider

func NewWebpushProvider(publicKey string, privateKey string, endpoint string) (*notify.Notify, error)

Types

type HttpNotificationClient

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

func NewCustomHttpProvider

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

func (*HttpNotificationClient) Send

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