config

package
v0.0.0-...-720f425 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 4 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 {
	Session  *session
	Database *database
	Server   *server
}

Config for database, session and other information

func Default

func Default(debug, production bool) *Config

Default will return a default configuration

func Load

func Load(configPath string) (*Config, error)

Load a given configuration by path

type Duration

type Duration struct {
	time.Duration
}

Duration type

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

UnmarshalText custom duration type

Jump to

Keyboard shortcuts

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