ext

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(pm EmailSender) map[string]Extension

New extensions map

func NewConfirmation added in v1.1.0

func NewConfirmation(sender EmailSender) *confirmation

NewConfirmation extension

func NewRoot

func NewRoot() *root

NewRoot extension

Types

type EmailSender added in v1.1.0

type EmailSender interface {
	Send(context.Context, *postmark.Email) error
}

EmailSender interface

type Extension

type Extension interface {
	Execute(context.Context, common.Validator, *config.Form, map[string]string) (string, []*mautrix.ReqUploadMedia)
	Validate(context.Context, common.Validator, *config.Form, map[string]string) error
}

Extension is form extension interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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