Documentation
¶
Index ¶
- type Application
- func (app *Application) Add(name string, configuration any)
- func (app *Application) Env(envName string, defaultValue ...any) any
- func (app *Application) Get(path string, defaultValue ...any) any
- func (app *Application) GetBool(path string, defaultValue ...bool) bool
- func (app *Application) GetDuration(path string, defaultValue ...time.Duration) time.Duration
- func (app *Application) GetInt(path string, defaultValue ...int) int
- func (app *Application) GetString(path string, defaultValue ...string) string
- 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 NewApplication ¶ added in v1.8.0
func NewApplication(envFilePath string) *Application
func (*Application) Add ¶
func (app *Application) Add(name string, configuration any)
Add config to application.
func (*Application) Env ¶
func (app *Application) Env(envName string, defaultValue ...any) any
Env Get config from env.
func (*Application) Get ¶
func (app *Application) Get(path string, defaultValue ...any) any
Get config from application.
func (*Application) GetBool ¶
func (app *Application) GetBool(path string, defaultValue ...bool) bool
GetBool get bool type config from application.
func (*Application) GetDuration ¶ added in v1.15.12
GetDuration get time.Duration type config from application
type ServiceProvider ¶
type ServiceProvider struct {
}
func (*ServiceProvider) Boot ¶
func (r *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (r *ServiceProvider) Register(app foundation.Application)
func (*ServiceProvider) Relationship ¶ added in v1.15.12
func (r *ServiceProvider) Relationship() binding.Relationship
Click to show internal directories.
Click to hide internal directories.