notification

package
v1.527.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 29 Imported by: 1

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 NewBarkProvider added in v1.409.0

func NewBarkProvider(deviceKey string) (notify.Notifier, error)

func NewDingTalkProvider added in v1.409.0

func NewDingTalkProvider(token string, secret string) (notify.Notifier, error)

func NewDiscordProvider added in v1.409.0

func NewDiscordProvider(token string, channelId string) (*notify.Notify, error)

func NewGoogleChatProvider added in v1.409.0

func NewGoogleChatProvider(credentials string) (*notify.Notify, error)

func NewLarkProvider added in v1.409.0

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

func NewLineProvider added in v1.409.0

func NewLineProvider(channelSecret string, accessToken string, receiver string) (*notify.Notify, error)

func NewMatrixProvider added in v1.409.0

func NewMatrixProvider(userId string, accessToken string, roomId string, homeServer string) (*notify.Notify, error)

func NewMicrosoftTeamsProvider added in v1.409.0

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

func NewPushbulletProvider added in v1.409.0

func NewPushbulletProvider(apiToken string, deviceNickname string) (notify.Notifier, error)

func NewPushoverProvider added in v1.409.0

func NewPushoverProvider(appToken string, recipientID string) (notify.Notifier, error)

func NewRedditProvider added in v1.409.0

func NewRedditProvider(clientId string, clientSecret string, username string, password string, recipient string) (notify.Notifier, error)

func NewRocketChatProvider added in v1.409.0

func NewRocketChatProvider(clientId string, clientSecret string, endpoint string, channelName string) (notify.Notifier, error)

func NewSlackProvider added in v1.409.0

func NewSlackProvider(apiToken string, channelID string) (*notify.Notify, error)

func NewTelegramProvider

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

func NewTwitterProvider added in v1.409.0

func NewTwitterProvider(consumerKey string, consumerSecret string, accessToken string, accessTokenSecret string, twitterId string) (*notify.Notify, error)

func NewViberProvider added in v1.409.0

func NewViberProvider(senderName string, appKey string, webhookURL string, receiverId string) (notify.Notifier, error)

func NewWebpushProvider added in v1.409.0

func NewWebpushProvider(publicKey string, privateKey string, endpoint string) (*notify.Notify, 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