conf

package
v3.0.0-...-576cf03 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliArgs

func CliArgs() (string, string)

func MakeConfig

func MakeConfig(configPath string, cfg Configurer)

func ReadConfig

func ReadConfig(configString string, cfg Configurer) error

Types

type Config

type Config struct {
	Gottp GottpSettings
}

func (*Config) GetGottpConfig

func (self *Config) GetGottpConfig() *GottpSettings

func (*Config) MakeConfig

func (self *Config) MakeConfig(configPath string)

type Configurer

type Configurer interface {
	MakeConfig(string)
	GetGottpConfig() *GottpSettings
}

type GottpSettings

type GottpSettings struct {
	EmailHost     string
	EmailPort     string
	EmailUsername string
	EmailPassword string
	EmailSender   string
	EmailFrom     string
	ErrorTo       string
	EmailDummy    bool
	Listen        string
}

Jump to

Keyboard shortcuts

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