config

package
v0.0.0-...-afc8e46 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MailServer = &MailServerConfig{
	SmtpAddr: "127.0.0.1:7625",
	MailDir:  "./maildir",
	Hostname: "smtp.psi.i2p",
	I2P: &i2p.Config{
		Addr:    "127.0.0.1:7656",
		Session: "i2maild",
		Keyfile: "maild-privkey.dat",
	},
}

default config

Functions

func Ensure

func Ensure(fname string) (err error)

ensure that the config is created an loaded

func Load

func Load(fname string) (err error)

load config from filename

func Save

func Save(fname string) (err error)

save config to file

Types

type MailServerConfig

type MailServerConfig struct {
	MailDir  string
	Hostname string
	I2P      *i2p.Config
	SmtpAddr string
}

mail server configuration

Jump to

Keyboard shortcuts

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