Documentation ¶
Index ¶
- func Bind[T any](app contracts.Application, name string, provider Provider[T])
- func Make[T any](app contracts.Application, name string) (T, error)
- func MustMake[T any](app contracts.Application, name string) T
- type Application
- func (app *Application) Config() map[string]interface{}
- func (app *Application) Context() context.Context
- func (app *Application) Injector() *do.Injector
- func (app *Application) ListProvidedServices() []string
- func (app *Application) Services() contracts.ApplicationServices
- func (app *Application) Shutdown() error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func (*Application) Config ¶
func (app *Application) Config() map[string]interface{}
func (*Application) Context ¶
func (app *Application) Context() context.Context
func (*Application) Injector ¶
func (app *Application) Injector() *do.Injector
func (*Application) ListProvidedServices ¶
func (app *Application) ListProvidedServices() []string
func (*Application) Services ¶
func (app *Application) Services() contracts.ApplicationServices
func (*Application) Shutdown ¶ added in v1.8.0
func (app *Application) Shutdown() error
Directories ¶
Path | Synopsis |
---|---|
Package errors contains all the errors that can be returned by the application This error handled and sent to the client by the framework
|
Package errors contains all the errors that can be returned by the application This error handled and sent to the client by the framework |
Package responses contains helper functions to create response that can be returned by the application
|
Package responses contains helper functions to create response that can be returned by the application |
Click to show internal directories.
Click to hide internal directories.