Documentation
¶
Index ¶
- 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
- type Console
- type CreateEndpoint
- type Endpoint
- type ParsedEndpoint
- type Sender
- type Shoutrrr
- type Telegram
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterImagesOnly ¶
func FilterImagesOnly(atts []*envelope.Attachment) []*envelope.Attachment
func GetAttachments ¶
func GetAttachments(env envelope.Envelope, config Config) []*envelope.Attachment
Types ¶
type CreateEndpoint ¶
type Endpoint ¶
type Endpoint struct {
ID int64 `bun:"id,pk,autoincrement"`
Internal bool
InternalID string
Name string
AttachmentDisable bool
TextDisable bool
BodyTemplate string
Kind string
Config map[string]string
}
func New ¶
func New(r CreateEndpoint) (Endpoint, error)
func (Endpoint) Parse ¶
func (e Endpoint) Parse() (ParsedEndpoint, error)
type ParsedEndpoint ¶
type Shoutrrr ¶
type Shoutrrr struct {
// contains filtered or unexported fields
}
func NewShoutrrr ¶
func NewShoutrrr(router *router.ServiceRouter) Shoutrrr
Click to show internal directories.
Click to hide internal directories.