channel

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	component.Component
	// contains filtered or unexported methods
}

--- Interface code block ---

type Config

type Config struct {
	Email *Email
}

func (*Config) Validate

func (c *Config) Validate() error

type Dependencies

type Dependencies struct{}

type Email

type Email struct {
	SmtpEndpoint string

	From     string
	Password string

	FeedMarkdownTemplate string

	FeedHTMLSnippetTemplate string
	// contains filtered or unexported fields
}

func (*Email) Enabled

func (c *Email) Enabled() bool

func (*Email) Validate

func (c *Email) Validate() error

type Factory

--- Factory code block ---

func NewFactory

func NewFactory(mockOn ...component.MockOption) Factory

type Receiver

type Receiver struct {
	Email   string
	Webhook *WebhookReceiver
}

func (*Receiver) Validate

func (r *Receiver) Validate() error

type WebhookReceiver

type WebhookReceiver struct {
	URL string `json:"url"`
}

func (*WebhookReceiver) Validate

func (r *WebhookReceiver) Validate() error

Jump to

Keyboard shortcuts

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