notification

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 29 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 NewBarkProvider

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

func NewDingTalkProvider

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

func NewDiscordProvider

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

func NewGoogleChatProvider

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

func NewLarkProvider

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

func NewLineProvider

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

func NewMatrixProvider

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

func NewMicrosoftTeamsProvider

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

func NewPushbulletProvider

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

func NewPushoverProvider

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

func NewRedditProvider

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

func NewRocketChatProvider

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

func NewSlackProvider

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

func NewTelegramProvider

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

func NewTwitterProvider

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

func NewViberProvider

func NewViberProvider(senderName string, appKey string, webhookURL string, receiverId 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