config

package
v0.0.0-...-8d921ee Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type Config

type Config struct {
	Server *ServerConfig
	Store  *StoreConfig
	Token  *TokenConfig
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(configDir string, logger logging.Logger) (*Config, error)

type ServerConfig

type ServerConfig struct {
	BindAddress string `json:"bind_address" yaml:"bind_address"`
	HttpPort    int    `json:"http_port" yaml:"http_port"`
}

type StoreConfig

type StoreConfig struct {
	StoreType         string        `json:"store_type" yaml:"store_type"`
	RedisAddress      string        `json:"redis_address" yaml:"redis_address"`
	MaxCertificateTTL time.Duration `json:"max_certificate_ttl" yaml:"max_certificate_ttl"`
	MinCertificateTTL time.Duration `json:"min_certificate_ttl" yaml:"min_certificate_ttl"`
}

func NewStoreConfig

func NewStoreConfig(logger logging.Logger) *StoreConfig

type TokenConfig

type TokenConfig struct {
	TokenTTL time.Duration `json:"token_ttl" yaml:"token_ttl"`
}

Jump to

Keyboard shortcuts

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