Documentation ¶
Index ¶
- type Application
- func (app *Application) Add(name string, configuration map[string]interface{})
- func (app *Application) Env(envName string, defaultValue ...interface{}) interface{}
- func (app *Application) Get(path string, defaultValue ...interface{}) interface{}
- func (app *Application) GetBool(path string, defaultValue ...interface{}) bool
- func (app *Application) GetInt(path string, defaultValue ...interface{}) int
- func (app *Application) GetString(path string, defaultValue ...interface{}) string
- func (app *Application) Init() config.Config
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) Add ¶
func (app *Application) Add(name string, configuration map[string]interface{})
Add config to application.
func (*Application) Env ¶
func (app *Application) Env(envName string, defaultValue ...interface{}) interface{}
Env Get config from env.
func (*Application) Get ¶
func (app *Application) Get(path string, defaultValue ...interface{}) interface{}
Get config from application.
func (*Application) GetBool ¶
func (app *Application) GetBool(path string, defaultValue ...interface{}) bool
GetBool Get bool type config from application.
func (*Application) GetInt ¶
func (app *Application) GetInt(path string, defaultValue ...interface{}) int
GetInt Get int type config from application.
func (*Application) GetString ¶
func (app *Application) GetString(path string, defaultValue ...interface{}) string
GetString Get string type config from application.
func (*Application) Init ¶
func (app *Application) Init() config.Config
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (config *ServiceProvider) Boot()
func (*ServiceProvider) Register ¶
func (config *ServiceProvider) Register()
Click to show internal directories.
Click to hide internal directories.