Documentation
¶
Index ¶
- Constants
- func New(f Factory, r CreateEndpoint) (models.Endpoint, error)
- func NewFuncMap(r CreateFuncMap) template.FuncMap
- func NewInternal(f Factory, r CreateEndpoint, internalID string) (models.Endpoint, error)
- type CreateEndpoint
- type CreateFuncMap
- type Endpoint
- type Factory
- type FileStore
- type Sender
Constants ¶
View Source
const DefaultBodyTemplate = "{{ .Message.Text }}"
View Source
const DefaultTitleTemplate = "{{ .Message.Subject }}"
Variables ¶
This section is empty.
Functions ¶
func NewFuncMap ¶
func NewFuncMap(r CreateFuncMap) template.FuncMap
func NewInternal ¶
Types ¶
type CreateEndpoint ¶
type CreateFuncMap ¶
type CreateFuncMap struct {
URL string
}
type FileStore ¶
type FileStore interface {
Reader(ctx context.Context, att models.Attachment) (io.ReadCloser, error)
Path(ctx context.Context, att models.Attachment) (string, error)
}
Click to show internal directories.
Click to hide internal directories.