Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvProduction = "production" EnvDevelopment = "development" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Config ¶
type Config interface { New(provider string) ConfigSet Parse(arguments []string) Visit(fn func(f ConfigFlag)) }
type ConfigFlag ¶
type ConfigSet ¶
type ConfigSet interface { BoolVar(p *bool, name string, value bool, usage string) IntVar(p *int, name string, value int, usage string) Int64Var(p *int64, name string, value int64, usage string) UintVar(p *uint, name string, value uint, usage string) Uint64Var(p *uint64, name string, value uint64, usage string) StringVar(p *string, name string, value string, usage string) Float64Var(p *float64, name string, value float64, usage string) DurationVar(p *time.Duration, name string, value time.Duration, usage string) }
type Container ¶
type Container interface { Instances() []interface{} Singleton(resolver interface{}) Transient(resolver interface{}) Make(receiver interface{}) []interface{} }
type Dispatcher ¶
type Provider ¶
type Provider interface { Config(c ConfigSet) Boot(a Application) Register(a Application) }
Click to show internal directories.
Click to hide internal directories.