config

package
v0.0.0-...-321511a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Parses the configuration file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig struct {
	Enabled bool
}

type Config

type Config struct {
	// Memory config.
	Memory *MemoryConfig

	// IMAP config.
	Imap *ImapConfig

	// SMTP config.
	Smtp *SmtpConfig

	// Disk config.
	Disk *DiskConfig
}

Configuration for all backends. Backends omitted or set to null won't be activated.

func Load

func Load(path string) (config *Config, err error)

type DiskConfig

type DiskConfig struct {
	*BackendConfig
	*disk.Config

	Contacts      *DiskConfig
	Keys          *DiskConfig
	UsersSettings *DiskConfig
	Addresses     *DiskConfig
}

type ImapConfig

type ImapConfig struct {
	*BackendConfig
	*imap.Config
}

type MemoryConfig

type MemoryConfig struct {
	*BackendConfig
	Populate bool
	Domains  []string
}

type SmtpConfig

type SmtpConfig struct {
	*BackendConfig
	*smtp.Config
}

Jump to

Keyboard shortcuts

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