Documentation ¶
Index ¶
- Variables
- func Delete(r models.Endpoint) error
- func New(f Factory, r models.DTOEndpointCreate) (models.Endpoint, error)
- func NewFuncMap(r CreateFuncMap) template.FuncMap
- func NewInternal(f Factory, r models.DTOEndpointCreate, internalID string) (models.Endpoint, error)
- func Update(f Factory, m models.Endpoint, req models.DTOEndpointUpdate) (models.Endpoint, error)
- type CreateFuncMap
- type Endpoint
- type Factory
- type FileStore
- type Sender
Constants ¶
This section is empty.
Variables ¶
View Source
var Schema models.EndpointSchema = models.EndpointSchema{ { Name: "Console", Kind: "console", }, { Name: "Telegram", Kind: "telegram", Fields: []models.EndpointSchemaField{ { Key: "token", Name: "Token", Description: "Bot token from BotFather.", Example: "0123456789:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", }, { Key: "chat_id", Name: "Chat ID", Description: "Channel/chat/group ID.", Example: "1000000000", }, }, }, { Name: "Shoutrrr", Kind: "shoutrrr", Fields: []models.EndpointSchemaField{ { Key: "urls", Name: "URLs", Description: "List of Shoutrrr URLs.", Example: "telegram://token@telegram?chats=channel-1[,chat-id-1,...]", Multiline: true, }, }, }, { Name: "Apprise", Kind: "apprise", Fields: []models.EndpointSchemaField{ { Name: "URLs", Key: "urls", Description: "List of Apprise URLs.", Example: "tgram://bottoken/ChatID", Multiline: true, }, }, }, { Name: "Script", Kind: "script", Fields: []models.EndpointSchemaField{ { Key: "file", Name: "File", Description: "Name of script file located in the script directory.", Example: "my-script.py", }, }, }, }
Functions ¶
func NewFuncMap ¶
func NewFuncMap(r CreateFuncMap) template.FuncMap
func NewInternal ¶
Types ¶
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.