config

package
v0.0.0-...-3b07eb7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//status
	StatusInProgress = "in-progress"
	StatusSuccess    = "success"
	StatusFailed     = "failed"
	StatusPending    = "pending"
	StatusComplete   = "complete"
	StatusOnGoing    = "on-going"
)

Variables

View Source
var (
	ApiVersion = "0.1.0" + "-" + pBuildTime
)

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Driver       driver.DbConnectorConfig `json:"driver"`
	Port         string                   `json:"port"`
	GoogleApiKey string                   `json:"google_api_key"`
	Showlog      bool                     `json:"showlog"`
}

AppConfig optional parameter structure

var ApiConfig *AppConfig

api global handler

func FormatAppConfig

func FormatAppConfig(s string) *AppConfig

NewAppConfig new AppConfig

type GlobalConfig

type GlobalConfig struct {
}

func NewGlobalConfig

func NewGlobalConfig() *GlobalConfig

func (*GlobalConfig) InitConfig

func (g *GlobalConfig) InitConfig()

initConfig set defaults for initial reqmts

func (*GlobalConfig) InitEnvParams

func (g *GlobalConfig) InitEnvParams()

initEnvParams enable all OS envt vars to reload internally

func (*GlobalConfig) InitRecov

func (g *GlobalConfig) InitRecov()

initRecov is for dumpIng segv in

type Option

type Option struct {
	// contains filtered or unexported fields
}

Option optional parameter structure

func NewOption

func NewOption(name string, value interface{}) *Option

NewOption new Option

func (*Option) Name

func (o *Option) Name() string

Name of the Option

func (*Option) Value

func (o *Option) Value() interface{}

Value of the Option

Jump to

Keyboard shortcuts

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