config

package
v0.0.0-...-bd62ec0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup() error

Setup initializes the package

Types

type Configuration

type Configuration struct {
	Version     string          `mapstructure:"version"`
	Environment string          `mapstructure:"environment"`
	AssetDir    string          `mapstructure:"assetDir"`
	WebDir      string          `mapstructure:"webDir"`
	Handler     HandlerConfig   `mapstructure:"handler"`
	L           l.Configuration `mapstructure:"l"`
	// Identity    identity.Configuration  `mapstructure:"identity"`
	Raizel raizelSQL.Configuration `mapstructure:"raizel"`
}

Configuration holds all possible configurations structs

var (

	//Value is the currently state of the system configuration values
	Value *Configuration
)

func Get

func Get() *Configuration

Get returns the configuration struct

func (Configuration) String

func (c Configuration) String() string

type HandlerConfig

type HandlerConfig struct {
	Version string `mapstructure:"version"`
	IP      string `mapstructure:"ip"`
	Port    string `mapstructure:"port"`
}

HandlerConfig holds http handler parameters

func (HandlerConfig) BindAddress

func (h HandlerConfig) BindAddress() string

BindAddress returns the ip + port tcp address for socket bind purposes

func (HandlerConfig) String

func (h HandlerConfig) String() string

Jump to

Keyboard shortcuts

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