config

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2015 License: MIT Imports: 2 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 {
	Proxy struct {
		DNS struct {
			Enabled  bool   `json:"enabled"`
			Listener string `json:"listener"`
		} `json:"dns"`
		SSL struct {
			Enabled  bool   `json:"enabled"`
			Listener string `json:"listener"`
			Key      string `json:"key"`
			Cert     string `json:"cert"`
		} `json:"ssl"`
		HTTP struct {
			Enabled  bool   `json:"enabled"`
			Listener string `json:"listener"`
		} `json:"http"`
	} `json:"proxy"`
	Admin struct {
		Listener string `json:"listener"`
		Key      string `json:"key"`
		Cert     string `json:"cert"`
	} `json:"admin"`
	JWTKey     string `json:"jwt_key"`
	BoltDBFile string `json:"bolt_db_file"`
}

Config holds all the required information for server.

func New

func New(filename string) (*Config, error)

New parses JSON from the file provided by filename into a Config struct.

Jump to

Keyboard shortcuts

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