config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server  ServerConfig
	WebPort *string
}

Config is the configuration structure used to set up dovel server and web interface. This should be a JSON file located in $HOME/.dovel-config.json

type Handler

type Handler func(email interfaces.Email, content []byte) error

type InboxConfig

type InboxConfig struct {
	Domain    string
	Templates string
	Handler   string
	Root      string
}

type ServerConfig added in v0.4.0

type ServerConfig struct {
	Address string
	Domain  string
	Inboxes []InboxConfig
}

Jump to

Keyboard shortcuts

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