cfg

package
v0.0.0-...-bbf1054 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2015 License: ISC Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Storage StorageConfig
	IMAP    IMAPConfig
	SMTP    SMTPConfig
	TLS     TLSConfig
	HTTP    HTTPConfig
}

func ReadConfig

func ReadConfig(cfgPath string) *Config

type HTTPConfig

type HTTPConfig struct {
	Listen string
}

type IMAPConfig

type IMAPConfig struct {
	ListenIP string
	Port     int
}

type SMTPConfig

type SMTPConfig struct {
	ListenIP string
	Port     int
	HostName string
}

type StorageConfig

type StorageConfig struct {
	Provider string
	SQLite   struct {
		DBPath string
	}
}

type TLSConfig

type TLSConfig struct {
	CertPath string
	KeyPath  string
}

Jump to

Keyboard shortcuts

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