Versions in this module Expand all Collapse all v0 v0.12.1 Jul 25, 2023 v0.12.0 Jul 25, 2023 v0.11.2 Jul 23, 2023 v0.11.1 Jul 21, 2023 v0.11.0 Jul 21, 2023 Changes in this version + func FilterImagesOnly(atts []*envelope.Attachment) []*envelope.Attachment + func GetAttachments(env envelope.Envelope, config Config) []*envelope.Attachment + func GetBody(env envelope.Envelope, config Config) (string, error) + func GetTitle(env envelope.Envelope, config Config) string + type Config struct + AttachmentsDisable bool + BodyTemplate *template.Template + TextDisable bool + type Console struct + func NewConsole() Console + func (c Console) Send(cc *core.Context, env envelope.Envelope, config Config) error + type CreateEndpoint struct + AttachmentDisable bool + BodyTemplate string + Config map[string]string + Internal bool + InternalID string + Kind string + Name string + TextDisable bool + type Endpoint struct + AttachmentDisable bool + BodyTemplate string + Config map[string]string + ID int64 + Internal bool + InternalID string + Kind string + Name string + TextDisable bool + func New(req CreateEndpoint) (Endpoint, error) + func (e Endpoint) Parse() (ParsedEndpoint, error) + type ParsedEndpoint struct + Config Config + ID int64 + Sender Sender + func (pe ParsedEndpoint) Send(cc *core.Context, env envelope.Envelope) error + type Sender interface + Send func(cc *core.Context, env envelope.Envelope, config Config) error + func SenderFactory(kind string, config map[string]string) (Sender, error) + type Shoutrrr struct + func NewShoutrrr(router *router.ServiceRouter) Shoutrrr + func (s Shoutrrr) Send(cc *core.Context, env envelope.Envelope, config Config) error + type Telegram struct + func NewTelegram(token, chatID string) *Telegram + func (t *Telegram) Send(cc *core.Context, env envelope.Envelope, config Config) error