notify

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: BSD-2-Clause Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySchemaOverrides added in v0.1.11

func ApplySchemaOverrides(schema string, target *ParsedURL, values map[string]SchemaValue)

func RegisterSchemaAsset added in v0.1.11

func RegisterSchemaAsset(asset map[string]any)

func RegisterSchemaEntryOrdered added in v0.1.11

func RegisterSchemaEntryOrdered(order int, entry SchemaEntry)

func RegisterSchemaOverride added in v0.1.11

func RegisterSchemaOverride(schema string, override SchemaOverride)

func SchemaDetails added in v0.1.11

func SchemaDetails() map[string]any

func SchemaJSON added in v0.1.11

func SchemaJSON() ([]byte, error)

func SendRequest

func SendRequest(spec RequestSpec) error

func SupportedSchemas

func SupportedSchemas() []string

func SupportsSchema

func SupportsSchema(schema string) bool

func URLID added in v0.1.11

func URLID(target *ParsedURL, storageIDLen int, storageSalt []byte) string

Types

type AfricasTalkingTarget

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

func NewAfricasTalkingTarget

func NewAfricasTalkingTarget(target *ParsedURL) (*AfricasTalkingTarget, error)

func (*AfricasTalkingTarget) BuildRequest

func (a *AfricasTalkingTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*AfricasTalkingTarget) Send

func (a *AfricasTalkingTarget) Send(body, title string, notifyType NotifyType) error

type AppriseTarget

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

func NewAppriseTarget

func NewAppriseTarget(target *ParsedURL) (*AppriseTarget, error)

func (*AppriseTarget) BuildRequest

func (a *AppriseTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*AppriseTarget) Send

func (a *AppriseTarget) Send(body, title string, notifyType NotifyType) error

type AprsTarget added in v0.1.11

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

func NewAprsTarget added in v0.1.11

func NewAprsTarget(target *ParsedURL) (*AprsTarget, error)

func (*AprsTarget) Send added in v0.1.11

func (a *AprsTarget) Send(body, title string, _ NotifyType) error

type BarkTarget

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

func NewBarkTarget

func NewBarkTarget(target *ParsedURL) (*BarkTarget, error)

func (*BarkTarget) BuildRequest

func (b *BarkTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*BarkTarget) Send

func (b *BarkTarget) Send(body, title string, notifyType NotifyType) error

type BlueskyTarget

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

func NewBlueskyTarget

func NewBlueskyTarget(target *ParsedURL) (*BlueskyTarget, error)

func (*BlueskyTarget) BuildRequest

func (b *BlueskyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*BlueskyTarget) Send

func (b *BlueskyTarget) Send(body, title string, notifyType NotifyType) error

type BrevoTarget

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

func NewBrevoTarget

func NewBrevoTarget(target *ParsedURL) (*BrevoTarget, error)

func (*BrevoTarget) BuildRequest

func (b *BrevoTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*BrevoTarget) Send

func (b *BrevoTarget) Send(body, title string, notifyType NotifyType) error

type BulkSMSTarget

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

func NewBulkSMSTarget

func NewBulkSMSTarget(target *ParsedURL) (*BulkSMSTarget, error)

func (*BulkSMSTarget) BuildRequest

func (b *BulkSMSTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*BulkSMSTarget) Send

func (b *BulkSMSTarget) Send(body, title string, notifyType NotifyType) error

type BulkVSTarget

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

func NewBulkVSTarget

func NewBulkVSTarget(target *ParsedURL) (*BulkVSTarget, error)

func (*BulkVSTarget) BuildRequest

func (b *BulkVSTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*BulkVSTarget) Send

func (b *BulkVSTarget) Send(body, title string, notifyType NotifyType) error

type BurstSMSTarget

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

func NewBurstSMSTarget

func NewBurstSMSTarget(target *ParsedURL) (*BurstSMSTarget, error)

func (*BurstSMSTarget) BuildRequest

func (b *BurstSMSTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*BurstSMSTarget) Send

func (b *BurstSMSTarget) Send(body, title string, notifyType NotifyType) error

type ChanifyTarget

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

func NewChanifyTarget

func NewChanifyTarget(target *ParsedURL) (*ChanifyTarget, error)

func (*ChanifyTarget) BuildRequest

func (c *ChanifyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ChanifyTarget) Send

func (c *ChanifyTarget) Send(body, title string, notifyType NotifyType) error

type ClickSendTarget

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

func NewClickSendTarget

func NewClickSendTarget(target *ParsedURL) (*ClickSendTarget, error)

func (*ClickSendTarget) BuildRequest

func (c *ClickSendTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ClickSendTarget) Send

func (c *ClickSendTarget) Send(body, title string, notifyType NotifyType) error

type ClickatellTarget

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

func NewClickatellTarget

func NewClickatellTarget(target *ParsedURL) (*ClickatellTarget, error)

func (*ClickatellTarget) BuildRequest

func (c *ClickatellTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ClickatellTarget) Send

func (c *ClickatellTarget) Send(body, title string, notifyType NotifyType) error

type D7NetworksTarget

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

func NewD7NetworksTarget

func NewD7NetworksTarget(target *ParsedURL) (*D7NetworksTarget, error)

func (*D7NetworksTarget) BuildRequest

func (d *D7NetworksTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*D7NetworksTarget) Send

func (d *D7NetworksTarget) Send(body, title string, notifyType NotifyType) error

type DapnetTarget

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

func NewDapnetTarget

func NewDapnetTarget(target *ParsedURL) (*DapnetTarget, error)

func (*DapnetTarget) BuildRequest

func (d *DapnetTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*DapnetTarget) Send

func (d *DapnetTarget) Send(body, title string, notifyType NotifyType) error

type DingTalkTarget

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

func NewDingTalkTarget

func NewDingTalkTarget(target *ParsedURL) (*DingTalkTarget, error)

func (*DingTalkTarget) BuildRequest

func (d *DingTalkTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*DingTalkTarget) Send

func (d *DingTalkTarget) Send(body, title string, notifyType NotifyType) error

type DiscordTarget

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

func NewDiscordTarget

func NewDiscordTarget(target *ParsedURL) (*DiscordTarget, error)

func (*DiscordTarget) BuildRequest

func (d *DiscordTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*DiscordTarget) Send

func (d *DiscordTarget) Send(body, title string, notifyType NotifyType) error

type DotTarget

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

func NewDotTarget

func NewDotTarget(target *ParsedURL) (*DotTarget, error)

func (*DotTarget) BuildRequest

func (d *DotTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*DotTarget) Send

func (d *DotTarget) Send(body, title string, notifyType NotifyType) error

type EmbyTarget

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

func NewEmbyTarget

func NewEmbyTarget(target *ParsedURL) (*EmbyTarget, error)

func (*EmbyTarget) BuildRequest

func (e *EmbyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*EmbyTarget) Send

func (e *EmbyTarget) Send(body, title string, notifyType NotifyType) error

type Enigma2Target

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

func NewEnigma2Target

func NewEnigma2Target(target *ParsedURL) (*Enigma2Target, error)

func (*Enigma2Target) BuildRequest

func (e *Enigma2Target) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*Enigma2Target) Send

func (e *Enigma2Target) Send(body, title string, notifyType NotifyType) error

type FCMTarget

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

func NewFCMTarget

func NewFCMTarget(target *ParsedURL) (*FCMTarget, error)

func (*FCMTarget) BuildRequest

func (f *FCMTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*FCMTarget) Send

func (f *FCMTarget) Send(body, title string, notifyType NotifyType) error

type FeishuTarget

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

func NewFeishuTarget

func NewFeishuTarget(target *ParsedURL) (*FeishuTarget, error)

func (*FeishuTarget) BuildRequest

func (f *FeishuTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*FeishuTarget) Send

func (f *FeishuTarget) Send(body, title string, notifyType NotifyType) error

type FlockTarget

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

func NewFlockTarget

func NewFlockTarget(target *ParsedURL) (*FlockTarget, error)

func (*FlockTarget) BuildRequest

func (f *FlockTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*FlockTarget) Send

func (f *FlockTarget) Send(body, title string, notifyType NotifyType) error

type FormTarget

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

func NewFormTarget

func NewFormTarget(target *ParsedURL) (*FormTarget, error)

func (*FormTarget) BuildRequest

func (f *FormTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*FormTarget) Send

func (f *FormTarget) Send(body, title string, notifyType NotifyType) error

type FortySixElksTarget

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

func NewFortySixElksTarget

func NewFortySixElksTarget(target *ParsedURL) (*FortySixElksTarget, error)

func (*FortySixElksTarget) BuildRequest

func (f *FortySixElksTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*FortySixElksTarget) Send

func (f *FortySixElksTarget) Send(body, title string, notifyType NotifyType) error

type FreeMobileTarget

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

func NewFreeMobileTarget

func NewFreeMobileTarget(target *ParsedURL) (*FreeMobileTarget, error)

func (*FreeMobileTarget) BuildRequest

func (f *FreeMobileTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*FreeMobileTarget) Send

func (f *FreeMobileTarget) Send(body, title string, notifyType NotifyType) error

type GoogleChatTarget

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

func NewGoogleChatTarget

func NewGoogleChatTarget(target *ParsedURL) (*GoogleChatTarget, error)

func (*GoogleChatTarget) BuildRequest

func (g *GoogleChatTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*GoogleChatTarget) Send

func (g *GoogleChatTarget) Send(body, title string, notifyType NotifyType) error

type GotifyTarget

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

func NewGotifyTarget

func NewGotifyTarget(target *ParsedURL) (*GotifyTarget, error)

func (*GotifyTarget) BuildRequest

func (g *GotifyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*GotifyTarget) Send

func (g *GotifyTarget) Send(body, title string, notifyType NotifyType) error

type GrowlTarget added in v0.1.11

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

func NewGrowlTarget added in v0.1.11

func NewGrowlTarget(target *ParsedURL) (*GrowlTarget, error)

func (*GrowlTarget) Send added in v0.1.11

func (g *GrowlTarget) Send(body, title string, notifyType NotifyType) error

type GuildedTarget

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

func NewGuildedTarget

func NewGuildedTarget(target *ParsedURL) (*GuildedTarget, error)

func (*GuildedTarget) BuildRequest

func (g *GuildedTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*GuildedTarget) Send

func (g *GuildedTarget) Send(body, title string, notifyType NotifyType) error

type HTTPStatusError

type HTTPStatusError struct {
	StatusCode int
}

func (*HTTPStatusError) Error

func (e *HTTPStatusError) Error() string

type HomeAssistantTarget

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

func NewHomeAssistantTarget

func NewHomeAssistantTarget(target *ParsedURL) (*HomeAssistantTarget, error)

func (*HomeAssistantTarget) BuildRequest

func (h *HomeAssistantTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*HomeAssistantTarget) Send

func (h *HomeAssistantTarget) Send(body, title string, notifyType NotifyType) error

type HttpSMSTarget

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

func NewHttpSMSTarget

func NewHttpSMSTarget(target *ParsedURL) (*HttpSMSTarget, error)

func (*HttpSMSTarget) BuildRequest

func (h *HttpSMSTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*HttpSMSTarget) Send

func (h *HttpSMSTarget) Send(body, title string, notifyType NotifyType) error

type IFTTTTarget

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

func NewIFTTTTarget

func NewIFTTTTarget(target *ParsedURL) (*IFTTTTarget, error)

func (*IFTTTTarget) BuildRequest

func (t *IFTTTTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*IFTTTTarget) Send

func (t *IFTTTTarget) Send(body, title string, notifyType NotifyType) error

type JSONTarget

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

func NewJSONTarget

func NewJSONTarget(target *ParsedURL) (*JSONTarget, error)

func (*JSONTarget) BuildRequest

func (j *JSONTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*JSONTarget) Send

func (j *JSONTarget) Send(body, title string, notifyType NotifyType) error

type JoinTarget

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

func NewJoinTarget

func NewJoinTarget(target *ParsedURL) (*JoinTarget, error)

func (*JoinTarget) BuildRequest

func (j *JoinTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*JoinTarget) Send

func (j *JoinTarget) Send(body, title string, notifyType NotifyType) error

type KavenegarTarget

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

func NewKavenegarTarget

func NewKavenegarTarget(target *ParsedURL) (*KavenegarTarget, error)

func (*KavenegarTarget) BuildRequest

func (k *KavenegarTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*KavenegarTarget) Send

func (k *KavenegarTarget) Send(body, title string, notifyType NotifyType) error

type KumulosTarget

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

func NewKumulosTarget

func NewKumulosTarget(target *ParsedURL) (*KumulosTarget, error)

func (*KumulosTarget) BuildRequest

func (k *KumulosTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*KumulosTarget) Send

func (k *KumulosTarget) Send(body, title string, notifyType NotifyType) error

type LametricTarget

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

func NewLametricTarget

func NewLametricTarget(target *ParsedURL) (*LametricTarget, error)

func (*LametricTarget) BuildRequest

func (l *LametricTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*LametricTarget) Send

func (l *LametricTarget) Send(body, title string, notifyType NotifyType) error

type LarkTarget

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

func NewLarkTarget

func NewLarkTarget(target *ParsedURL) (*LarkTarget, error)

func (*LarkTarget) BuildRequest

func (l *LarkTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*LarkTarget) Send

func (l *LarkTarget) Send(body, title string, notifyType NotifyType) error

type LineTarget

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

func NewLineTarget

func NewLineTarget(target *ParsedURL) (*LineTarget, error)

func (*LineTarget) BuildRequest

func (l *LineTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*LineTarget) Send

func (l *LineTarget) Send(body, title string, notifyType NotifyType) error

type LocalNotifyTarget added in v0.1.11

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

func NewLocalNotifyTarget added in v0.1.11

func NewLocalNotifyTarget(target *ParsedURL) (*LocalNotifyTarget, error)

func (*LocalNotifyTarget) Send added in v0.1.11

func (l *LocalNotifyTarget) Send(body, title string, notifyType NotifyType) error

type MQTTTarget added in v0.1.11

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

func NewMQTTTarget added in v0.1.11

func NewMQTTTarget(target *ParsedURL) (*MQTTTarget, error)

func (*MQTTTarget) Send added in v0.1.11

func (m *MQTTTarget) Send(body, title string, _ NotifyType) error

type MSG91Target

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

func NewMSG91Target

func NewMSG91Target(target *ParsedURL) (*MSG91Target, error)

func (*MSG91Target) BuildRequest

func (m *MSG91Target) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MSG91Target) Send

func (m *MSG91Target) Send(body, title string, notifyType NotifyType) error

type MSTeamsTarget

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

func NewMSTeamsTarget

func NewMSTeamsTarget(target *ParsedURL) (*MSTeamsTarget, error)

func (*MSTeamsTarget) BuildRequest

func (m *MSTeamsTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MSTeamsTarget) Send

func (m *MSTeamsTarget) Send(body, title string, notifyType NotifyType) error

type MacOSXTarget added in v0.1.11

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

func NewMacOSXTarget added in v0.1.11

func NewMacOSXTarget(target *ParsedURL) (*MacOSXTarget, error)

func (*MacOSXTarget) Send added in v0.1.11

func (m *MacOSXTarget) Send(body, title string, notifyType NotifyType) error

type MailgunTarget

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

func NewMailgunTarget

func NewMailgunTarget(target *ParsedURL) (*MailgunTarget, error)

func (*MailgunTarget) BuildRequest

func (m *MailgunTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MailgunTarget) Send

func (m *MailgunTarget) Send(body, title string, notifyType NotifyType) error

type MailtoTarget added in v0.1.11

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

func NewMailtoTarget added in v0.1.11

func NewMailtoTarget(target *ParsedURL) (*MailtoTarget, error)

func (*MailtoTarget) Send added in v0.1.11

func (m *MailtoTarget) Send(body, title string, notifyType NotifyType) error

type MastodonTarget

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

func NewMastodonTarget

func NewMastodonTarget(target *ParsedURL) (*MastodonTarget, error)

func (*MastodonTarget) BuildRequest

func (m *MastodonTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MastodonTarget) Send

func (m *MastodonTarget) Send(body, title string, notifyType NotifyType) error

type MatrixTarget

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

func NewMatrixTarget

func NewMatrixTarget(target *ParsedURL) (*MatrixTarget, error)

func (*MatrixTarget) BuildRequest

func (m *MatrixTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MatrixTarget) Send

func (m *MatrixTarget) Send(body, title string, notifyType NotifyType) error

type MattermostTarget

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

func NewMattermostTarget

func NewMattermostTarget(target *ParsedURL) (*MattermostTarget, error)

func (*MattermostTarget) BuildRequest

func (m *MattermostTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MattermostTarget) Send

func (m *MattermostTarget) Send(body, title string, notifyType NotifyType) error

type MessageBirdTarget

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

func NewMessageBirdTarget

func NewMessageBirdTarget(target *ParsedURL) (*MessageBirdTarget, error)

func (*MessageBirdTarget) BuildRequest

func (m *MessageBirdTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MessageBirdTarget) Send

func (m *MessageBirdTarget) Send(body, title string, notifyType NotifyType) error

type MisskeyTarget

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

func NewMisskeyTarget

func NewMisskeyTarget(target *ParsedURL) (*MisskeyTarget, error)

func (*MisskeyTarget) BuildRequest

func (m *MisskeyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*MisskeyTarget) Send

func (m *MisskeyTarget) Send(body, title string, notifyType NotifyType) error

type NextcloudTalkTarget

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

func NewNextcloudTalkTarget

func NewNextcloudTalkTarget(target *ParsedURL) (*NextcloudTalkTarget, error)

func (*NextcloudTalkTarget) BuildRequest

func (n *NextcloudTalkTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NextcloudTalkTarget) Send

func (n *NextcloudTalkTarget) Send(body, title string, notifyType NotifyType) error

type NextcloudTarget

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

func NewNextcloudTarget

func NewNextcloudTarget(target *ParsedURL) (*NextcloudTarget, error)

func (*NextcloudTarget) BuildRequest

func (n *NextcloudTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NextcloudTarget) Send

func (n *NextcloudTarget) Send(body, title string, notifyType NotifyType) error

type NoticaTarget

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

func NewNoticaTarget

func NewNoticaTarget(target *ParsedURL) (*NoticaTarget, error)

func (*NoticaTarget) BuildRequest

func (n *NoticaTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NoticaTarget) Send

func (n *NoticaTarget) Send(body, title string, notifyType NotifyType) error

type NotifiarrTarget

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

func NewNotifiarrTarget

func NewNotifiarrTarget(target *ParsedURL) (*NotifiarrTarget, error)

func (*NotifiarrTarget) BuildRequest

func (n *NotifiarrTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NotifiarrTarget) Send

func (n *NotifiarrTarget) Send(body, title string, notifyType NotifyType) error

type NotificationAPITarget

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

func NewNotificationAPITarget

func NewNotificationAPITarget(target *ParsedURL) (*NotificationAPITarget, error)

func (*NotificationAPITarget) BuildRequest

func (n *NotificationAPITarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NotificationAPITarget) Send

func (n *NotificationAPITarget) Send(body, title string, notifyType NotifyType) error

type NotificoTarget

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

func NewNotificoTarget

func NewNotificoTarget(target *ParsedURL) (*NotificoTarget, error)

func (*NotificoTarget) BuildRequest

func (n *NotificoTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NotificoTarget) Send

func (n *NotificoTarget) Send(body, title string, notifyType NotifyType) error

type NotifyType

type NotifyType string
const (
	NotifyInfo    NotifyType = "info"
	NotifySuccess NotifyType = "success"
	NotifyWarning NotifyType = "warning"
	NotifyFailure NotifyType = "failure"
)

func ParseNotifyType

func ParseNotifyType(raw string) (NotifyType, bool)

type NtfyMode

type NtfyMode string
const (
	NtfyModeCloud   NtfyMode = "cloud"
	NtfyModePrivate NtfyMode = "private"
)

type NtfyTarget

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

func NewNtfyTarget

func NewNtfyTarget(target *ParsedURL) (*NtfyTarget, error)

func (*NtfyTarget) BuildRequest

func (n *NtfyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*NtfyTarget) Send

func (n *NtfyTarget) Send(body, title string, notifyType NotifyType) error

type Office365Target

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

func NewOffice365Target

func NewOffice365Target(target *ParsedURL) (*Office365Target, error)

func (*Office365Target) BuildRequest

func (o *Office365Target) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*Office365Target) Send

func (o *Office365Target) Send(body, title string, notifyType NotifyType) error

type OneSignalTarget

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

func NewOneSignalTarget

func NewOneSignalTarget(target *ParsedURL) (*OneSignalTarget, error)

func (*OneSignalTarget) BuildRequest

func (o *OneSignalTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*OneSignalTarget) Send

func (o *OneSignalTarget) Send(body, title string, notifyType NotifyType) error

type OpsgenieTarget

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

func NewOpsgenieTarget

func NewOpsgenieTarget(target *ParsedURL) (*OpsgenieTarget, error)

func (*OpsgenieTarget) BuildRequest

func (o *OpsgenieTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*OpsgenieTarget) Send

func (o *OpsgenieTarget) Send(body, title string, notifyType NotifyType) error

type PagerDutyTarget

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

func NewPagerDutyTarget

func NewPagerDutyTarget(target *ParsedURL) (*PagerDutyTarget, error)

func (*PagerDutyTarget) BuildRequest

func (p *PagerDutyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PagerDutyTarget) Send

func (p *PagerDutyTarget) Send(body, title string, notifyType NotifyType) error

type PagerTreeTarget

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

func NewPagerTreeTarget

func NewPagerTreeTarget(target *ParsedURL) (*PagerTreeTarget, error)

func (*PagerTreeTarget) BuildRequest

func (p *PagerTreeTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PagerTreeTarget) Send

func (p *PagerTreeTarget) Send(body, title string, notifyType NotifyType) error

type ParsePlatformTarget

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

func NewParsePlatformTarget

func NewParsePlatformTarget(target *ParsedURL) (*ParsePlatformTarget, error)

func (*ParsePlatformTarget) BuildRequest

func (p *ParsePlatformTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ParsePlatformTarget) Send

func (p *ParsePlatformTarget) Send(body, title string, notifyType NotifyType) error

type ParsedURL

type ParsedURL struct {
	Raw          string
	Scheme       string
	Host         string
	Port         int
	HasPort      bool
	User         string
	HasUser      bool
	Password     string
	HasPassword  bool
	Path         string
	Query        map[string]string
	QueryAdd     map[string]string
	QueryDel     map[string]string
	QueryPayload map[string]string
}

func ParseURL

func ParseURL(raw string) (*ParsedURL, error)

type PlivoTarget

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

func NewPlivoTarget

func NewPlivoTarget(target *ParsedURL) (*PlivoTarget, error)

func (*PlivoTarget) BuildRequest

func (p *PlivoTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PlivoTarget) Send

func (p *PlivoTarget) Send(body, title string, notifyType NotifyType) error

type PopcornTarget

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

func NewPopcornTarget

func NewPopcornTarget(target *ParsedURL) (*PopcornTarget, error)

func (*PopcornTarget) BuildRequest

func (p *PopcornTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PopcornTarget) Send

func (p *PopcornTarget) Send(body, title string, notifyType NotifyType) error

type ProwlTarget

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

func NewProwlTarget

func NewProwlTarget(target *ParsedURL) (*ProwlTarget, error)

func (*ProwlTarget) BuildRequest

func (p *ProwlTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ProwlTarget) Send

func (p *ProwlTarget) Send(body, title string, notifyType NotifyType) error

type PushDeerTarget

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

func NewPushDeerTarget

func NewPushDeerTarget(target *ParsedURL) (*PushDeerTarget, error)

func (*PushDeerTarget) BuildRequest

func (p *PushDeerTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushDeerTarget) Send

func (p *PushDeerTarget) Send(body, title string, notifyType NotifyType) error

type PushMeTarget

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

func NewPushMeTarget

func NewPushMeTarget(target *ParsedURL) (*PushMeTarget, error)

func (*PushMeTarget) BuildRequest

func (p *PushMeTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushMeTarget) Send

func (p *PushMeTarget) Send(body, title string, notifyType NotifyType) error

type PushSaferTarget

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

func NewPushSaferTarget

func NewPushSaferTarget(target *ParsedURL) (*PushSaferTarget, error)

func (*PushSaferTarget) BuildRequest

func (p *PushSaferTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushSaferTarget) Send

func (p *PushSaferTarget) Send(body, title string, notifyType NotifyType) error

type PushbulletTarget

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

func NewPushbulletTarget

func NewPushbulletTarget(target *ParsedURL) (*PushbulletTarget, error)

func (*PushbulletTarget) BuildRequest

func (p *PushbulletTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushbulletTarget) Send

func (p *PushbulletTarget) Send(body, title string, notifyType NotifyType) error

type PushedTarget

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

func NewPushedTarget

func NewPushedTarget(target *ParsedURL) (*PushedTarget, error)

func (*PushedTarget) BuildRequest

func (p *PushedTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushedTarget) Send

func (p *PushedTarget) Send(body, title string, notifyType NotifyType) error

type PushjetTarget

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

func NewPushjetTarget

func NewPushjetTarget(target *ParsedURL) (*PushjetTarget, error)

func (*PushjetTarget) BuildRequest

func (p *PushjetTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushjetTarget) Send

func (p *PushjetTarget) Send(body, title string, notifyType NotifyType) error

type PushoverTarget

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

func NewPushoverTarget

func NewPushoverTarget(target *ParsedURL) (*PushoverTarget, error)

func (*PushoverTarget) BuildRequest

func (p *PushoverTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushoverTarget) Send

func (p *PushoverTarget) Send(body, title string, notifyType NotifyType) error

type PushplusTarget

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

func NewPushplusTarget

func NewPushplusTarget(target *ParsedURL) (*PushplusTarget, error)

func (*PushplusTarget) BuildRequest

func (p *PushplusTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushplusTarget) Send

func (p *PushplusTarget) Send(body, title string, notifyType NotifyType) error

type PushyTarget

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

func NewPushyTarget

func NewPushyTarget(target *ParsedURL) (*PushyTarget, error)

func (*PushyTarget) BuildRequest

func (p *PushyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*PushyTarget) Send

func (p *PushyTarget) Send(body, title string, notifyType NotifyType) error

type QQTarget

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

func NewQQTarget

func NewQQTarget(target *ParsedURL) (*QQTarget, error)

func (*QQTarget) BuildRequest

func (q *QQTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*QQTarget) Send

func (q *QQTarget) Send(body, title string, notifyType NotifyType) error

type RSyslogTarget added in v0.1.11

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

func NewRSyslogTarget added in v0.1.11

func NewRSyslogTarget(target *ParsedURL) (*RSyslogTarget, error)

func (*RSyslogTarget) Send added in v0.1.11

func (r *RSyslogTarget) Send(body, title string, notifyType NotifyType) error

type RedditTarget

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

func NewRedditTarget

func NewRedditTarget(target *ParsedURL) (*RedditTarget, error)

func (*RedditTarget) BuildRequest

func (r *RedditTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*RedditTarget) Send

func (r *RedditTarget) Send(body, title string, notifyType NotifyType) error

type RequestSpec

type RequestSpec struct {
	Method  string            `json:"method"`
	URL     string            `json:"url"`
	Headers map[string]string `json:"headers"`
	Body    string            `json:"body"`
}

func (RequestSpec) HTTPRequest

func (r RequestSpec) HTTPRequest() (*http.Request, error)

type ResendTarget

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

func NewResendTarget

func NewResendTarget(target *ParsedURL) (*ResendTarget, error)

func (*ResendTarget) BuildRequest

func (r *ResendTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ResendTarget) Send

func (r *ResendTarget) Send(body, title string, notifyType NotifyType) error

type RevoltTarget

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

func NewRevoltTarget

func NewRevoltTarget(target *ParsedURL) (*RevoltTarget, error)

func (*RevoltTarget) BuildRequest

func (r *RevoltTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*RevoltTarget) Send

func (r *RevoltTarget) Send(body, title string, notifyType NotifyType) error

type RocketChatTarget

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

func NewRocketChatTarget

func NewRocketChatTarget(target *ParsedURL) (*RocketChatTarget, error)

func (*RocketChatTarget) BuildRequest

func (r *RocketChatTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*RocketChatTarget) Send

func (r *RocketChatTarget) Send(body, title string, notifyType NotifyType) error

type RyverTarget

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

func NewRyverTarget

func NewRyverTarget(target *ParsedURL) (*RyverTarget, error)

func (*RyverTarget) BuildRequest

func (r *RyverTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*RyverTarget) Send

func (r *RyverTarget) Send(body, title string, notifyType NotifyType) error

type SESTarget

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

func NewSESTarget

func NewSESTarget(target *ParsedURL) (*SESTarget, error)

func (*SESTarget) BuildRequest

func (s *SESTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SESTarget) Send

func (s *SESTarget) Send(body, title string, notifyType NotifyType) error

type SFRTarget

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

func NewSFRTarget

func NewSFRTarget(target *ParsedURL) (*SFRTarget, error)

func (*SFRTarget) BuildRequest

func (s *SFRTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SFRTarget) Send

func (s *SFRTarget) Send(body, title string, notifyType NotifyType) error

type SMPPTarget added in v0.1.11

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

func NewSMPPTarget added in v0.1.11

func NewSMPPTarget(target *ParsedURL) (*SMPPTarget, error)

func (*SMPPTarget) Send added in v0.1.11

func (s *SMPPTarget) Send(body, title string, _ NotifyType) error

type SMSEagleTarget

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

func NewSMSEagleTarget

func NewSMSEagleTarget(target *ParsedURL) (*SMSEagleTarget, error)

func (*SMSEagleTarget) BuildRequest

func (s *SMSEagleTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SMSEagleTarget) Send

func (s *SMSEagleTarget) Send(body, title string, notifyType NotifyType) error

type SMSManagerTarget

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

func NewSMSManagerTarget

func NewSMSManagerTarget(target *ParsedURL) (*SMSManagerTarget, error)

func (*SMSManagerTarget) BuildRequest

func (s *SMSManagerTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SMSManagerTarget) Send

func (s *SMSManagerTarget) Send(body, title string, notifyType NotifyType) error

type SMTP2GoTarget

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

func NewSMTP2GoTarget

func NewSMTP2GoTarget(target *ParsedURL) (*SMTP2GoTarget, error)

func (*SMTP2GoTarget) BuildRequest

func (s *SMTP2GoTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SMTP2GoTarget) Send

func (s *SMTP2GoTarget) Send(body, title string, notifyType NotifyType) error

type SNSTarget

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

func NewSNSTarget

func NewSNSTarget(target *ParsedURL) (*SNSTarget, error)

func (*SNSTarget) BuildRequest

func (s *SNSTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SNSTarget) Send

func (s *SNSTarget) Send(body, title string, notifyType NotifyType) error

type SchemaEntry added in v0.1.11

type SchemaEntry map[string]any

func SchemaEntries added in v0.1.11

func SchemaEntries() []SchemaEntry

func SchemaEntryForSchema added in v0.1.11

func SchemaEntryForSchema(schema string) (SchemaEntry, bool)

type SchemaInputs added in v0.1.11

type SchemaInputs struct {
	Values  map[string]SchemaValue
	Kwargs  map[string]map[string]string
	Aliases map[string]string
}

func SchemaInputsForParsed added in v0.1.11

func SchemaInputsForParsed(schema string, target *ParsedURL) (SchemaInputs, error)

func SchemaInputsFromURL added in v0.1.11

func SchemaInputsFromURL(schema, raw string) (SchemaInputs, error)

func (SchemaInputs) ValuesMap added in v0.1.11

func (s SchemaInputs) ValuesMap() map[string]any

type SchemaOverride added in v0.1.11

type SchemaOverride func(target *ParsedURL, values map[string]SchemaValue)

type SchemaValue added in v0.1.11

type SchemaValue struct {
	Value any
}

type SendGridTarget

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

func NewSendGridTarget

func NewSendGridTarget(target *ParsedURL) (*SendGridTarget, error)

func (*SendGridTarget) BuildRequest

func (s *SendGridTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SendGridTarget) Send

func (s *SendGridTarget) Send(body, title string, notifyType NotifyType) error

type SendPulseTarget

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

func NewSendPulseTarget

func NewSendPulseTarget(target *ParsedURL) (*SendPulseTarget, error)

func (*SendPulseTarget) BuildRequest

func (s *SendPulseTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SendPulseTarget) Send

func (s *SendPulseTarget) Send(body, title string, notifyType NotifyType) error

type ServerChanTarget

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

func NewServerChanTarget

func NewServerChanTarget(target *ParsedURL) (*ServerChanTarget, error)

func (*ServerChanTarget) BuildRequest

func (s *ServerChanTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ServerChanTarget) Send

func (s *ServerChanTarget) Send(body, title string, notifyType NotifyType) error

type SevenTarget

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

func NewSevenTarget

func NewSevenTarget(target *ParsedURL) (*SevenTarget, error)

func (*SevenTarget) BuildRequest

func (s *SevenTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SevenTarget) Send

func (s *SevenTarget) Send(body, title string, notifyType NotifyType) error

type SignalTarget

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

func NewSignalTarget

func NewSignalTarget(target *ParsedURL) (*SignalTarget, error)

func (*SignalTarget) BuildRequest

func (s *SignalTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SignalTarget) Send

func (s *SignalTarget) Send(body, title string, notifyType NotifyType) error

type Signl4Target

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

func NewSignl4Target

func NewSignl4Target(target *ParsedURL) (*Signl4Target, error)

func (*Signl4Target) BuildRequest

func (s *Signl4Target) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*Signl4Target) Send

func (s *Signl4Target) Send(body, title string, notifyType NotifyType) error

type SimplePushTarget

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

func NewSimplePushTarget

func NewSimplePushTarget(target *ParsedURL) (*SimplePushTarget, error)

func (*SimplePushTarget) BuildRequest

func (s *SimplePushTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SimplePushTarget) Send

func (s *SimplePushTarget) Send(body, title string, notifyType NotifyType) error

type SinchTarget

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

func NewSinchTarget

func NewSinchTarget(target *ParsedURL) (*SinchTarget, error)

func (*SinchTarget) BuildRequest

func (s *SinchTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SinchTarget) Send

func (s *SinchTarget) Send(body, title string, notifyType NotifyType) error

type SlackTarget

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

func NewSlackTarget

func NewSlackTarget(target *ParsedURL) (*SlackTarget, error)

func (*SlackTarget) BuildRequest

func (s *SlackTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SlackTarget) Send

func (s *SlackTarget) Send(body, title string, notifyType NotifyType) error

type SparkPostTarget

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

func NewSparkPostTarget

func NewSparkPostTarget(target *ParsedURL) (*SparkPostTarget, error)

func (*SparkPostTarget) BuildRequest

func (s *SparkPostTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SparkPostTarget) Send

func (s *SparkPostTarget) Send(body, title string, notifyType NotifyType) error

type SpikeTarget

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

func NewSpikeTarget

func NewSpikeTarget(target *ParsedURL) (*SpikeTarget, error)

func (*SpikeTarget) BuildRequest

func (s *SpikeTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SpikeTarget) Send

func (s *SpikeTarget) Send(body, title string, notifyType NotifyType) error

type SplunkTarget

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

func NewSplunkTarget

func NewSplunkTarget(target *ParsedURL) (*SplunkTarget, error)

func (*SplunkTarget) BuildRequest

func (s *SplunkTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SplunkTarget) Send

func (s *SplunkTarget) Send(body, title string, notifyType NotifyType) error

type SpugpushTarget

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

func NewSpugpushTarget

func NewSpugpushTarget(target *ParsedURL) (*SpugpushTarget, error)

func (*SpugpushTarget) BuildRequest

func (s *SpugpushTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SpugpushTarget) Send

func (s *SpugpushTarget) Send(body, title string, notifyType NotifyType) error

type StreamlabsTarget

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

func NewStreamlabsTarget

func NewStreamlabsTarget(target *ParsedURL) (*StreamlabsTarget, error)

func (*StreamlabsTarget) BuildRequest

func (s *StreamlabsTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*StreamlabsTarget) Send

func (s *StreamlabsTarget) Send(body, title string, notifyType NotifyType) error

type SynologyTarget

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

func NewSynologyTarget

func NewSynologyTarget(target *ParsedURL) (*SynologyTarget, error)

func (*SynologyTarget) BuildRequest

func (s *SynologyTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*SynologyTarget) Send

func (s *SynologyTarget) Send(body, title string, notifyType NotifyType) error

type SyslogTarget added in v0.1.11

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

func NewSyslogTarget added in v0.1.11

func NewSyslogTarget(target *ParsedURL) (*SyslogTarget, error)

func (*SyslogTarget) Send added in v0.1.11

func (s *SyslogTarget) Send(body, title string, notifyType NotifyType) error

type TechulusPushTarget

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

func NewTechulusPushTarget

func NewTechulusPushTarget(target *ParsedURL) (*TechulusPushTarget, error)

func (*TechulusPushTarget) BuildRequest

func (t *TechulusPushTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*TechulusPushTarget) Send

func (t *TechulusPushTarget) Send(body, title string, notifyType NotifyType) error

type TelegramTarget

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

func NewTelegramTarget

func NewTelegramTarget(target *ParsedURL) (*TelegramTarget, error)

func (*TelegramTarget) BuildRequest

func (t *TelegramTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*TelegramTarget) Send

func (t *TelegramTarget) Send(body, title string, notifyType NotifyType) error

type ThreemaTarget

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

func NewThreemaTarget

func NewThreemaTarget(target *ParsedURL) (*ThreemaTarget, error)

func (*ThreemaTarget) BuildRequest

func (t *ThreemaTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ThreemaTarget) Send

func (t *ThreemaTarget) Send(body, title string, notifyType NotifyType) error

type TwilioTarget

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

func NewTwilioTarget

func NewTwilioTarget(target *ParsedURL) (*TwilioTarget, error)

func (*TwilioTarget) BuildRequest

func (t *TwilioTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*TwilioTarget) Send

func (t *TwilioTarget) Send(body, title string, notifyType NotifyType) error

type TwistTarget

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

func NewTwistTarget

func NewTwistTarget(target *ParsedURL) (*TwistTarget, error)

func (*TwistTarget) BuildRequest

func (t *TwistTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*TwistTarget) Send

func (t *TwistTarget) Send(body, title string, notifyType NotifyType) error

type TwitterTarget

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

func NewTwitterTarget

func NewTwitterTarget(target *ParsedURL) (*TwitterTarget, error)

func (*TwitterTarget) BuildRequest

func (t *TwitterTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*TwitterTarget) Send

func (t *TwitterTarget) Send(body, title string, notifyType NotifyType) error

type VapidTarget

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

func NewVapidTarget

func NewVapidTarget(target *ParsedURL) (*VapidTarget, error)

func (*VapidTarget) BuildRequest

func (v *VapidTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*VapidTarget) Send

func (v *VapidTarget) Send(body, title string, notifyType NotifyType) error

type VoipmsTarget

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

func NewVoipmsTarget

func NewVoipmsTarget(target *ParsedURL) (*VoipmsTarget, error)

func (*VoipmsTarget) BuildRequest

func (v *VoipmsTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*VoipmsTarget) Send

func (v *VoipmsTarget) Send(body, title string, notifyType NotifyType) error

type VonageTarget

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

func NewVonageTarget

func NewVonageTarget(target *ParsedURL) (*VonageTarget, error)

func (*VonageTarget) BuildRequest

func (v *VonageTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*VonageTarget) Send

func (v *VonageTarget) Send(body, title string, notifyType NotifyType) error

type WeComBotTarget

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

func NewWeComBotTarget

func NewWeComBotTarget(target *ParsedURL) (*WeComBotTarget, error)

func (*WeComBotTarget) BuildRequest

func (w *WeComBotTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*WeComBotTarget) Send

func (w *WeComBotTarget) Send(body, title string, notifyType NotifyType) error

type WebexTeamsTarget

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

func NewWebexTeamsTarget

func NewWebexTeamsTarget(target *ParsedURL) (*WebexTeamsTarget, error)

func (*WebexTeamsTarget) BuildRequest

func (w *WebexTeamsTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*WebexTeamsTarget) Send

func (w *WebexTeamsTarget) Send(body, title string, notifyType NotifyType) error

type WhatsAppTarget

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

func NewWhatsAppTarget

func NewWhatsAppTarget(target *ParsedURL) (*WhatsAppTarget, error)

func (*WhatsAppTarget) BuildRequest

func (w *WhatsAppTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*WhatsAppTarget) Send

func (w *WhatsAppTarget) Send(body, title string, notifyType NotifyType) error

type WindowsTarget added in v0.1.11

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

func NewWindowsTarget added in v0.1.11

func NewWindowsTarget(target *ParsedURL) (*WindowsTarget, error)

func (*WindowsTarget) Send added in v0.1.11

func (w *WindowsTarget) Send(body, title string, notifyType NotifyType) error

type WorkflowsTarget

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

func NewWorkflowsTarget

func NewWorkflowsTarget(target *ParsedURL) (*WorkflowsTarget, error)

func (*WorkflowsTarget) BuildRequest

func (w *WorkflowsTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*WorkflowsTarget) Send

func (w *WorkflowsTarget) Send(body, title string, notifyType NotifyType) error

type WxPusherTarget

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

func NewWxPusherTarget

func NewWxPusherTarget(target *ParsedURL) (*WxPusherTarget, error)

func (*WxPusherTarget) BuildRequest

func (w *WxPusherTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*WxPusherTarget) Send

func (w *WxPusherTarget) Send(body, title string, notifyType NotifyType) error

type XBMCTarget added in v0.1.11

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

func NewXBMCTarget added in v0.1.11

func NewXBMCTarget(target *ParsedURL) (*XBMCTarget, error)

func (*XBMCTarget) BuildRequest added in v0.1.11

func (x *XBMCTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*XBMCTarget) Send added in v0.1.11

func (x *XBMCTarget) Send(body, title string, notifyType NotifyType) error

type XMLTarget

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

func NewXMLTarget

func NewXMLTarget(target *ParsedURL) (*XMLTarget, error)

func (*XMLTarget) BuildRequest

func (x *XMLTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*XMLTarget) Send

func (x *XMLTarget) Send(body, title string, notifyType NotifyType) error

type ZulipTarget

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

func NewZulipTarget

func NewZulipTarget(target *ParsedURL) (*ZulipTarget, error)

func (*ZulipTarget) BuildRequest

func (z *ZulipTarget) BuildRequest(body, title string, notifyType NotifyType) (RequestSpec, error)

func (*ZulipTarget) Send

func (z *ZulipTarget) Send(body, title string, notifyType NotifyType) error

Source Files

Jump to

Keyboard shortcuts

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