Documentation ¶
Overview ¶
Package fake provides fake.ApplicationContext for unit testing
Index ¶
- type ApplicationContext
- func (a *ApplicationContext) GetInstance(params ...interface{}) (instance interface{})
- func (a *ApplicationContext) GetProperty(name string) (value interface{}, ok bool)
- func (a *ApplicationContext) RegisterController(controller interface{}) error
- func (a *ApplicationContext) Use(handlers ...context.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationContext ¶
type ApplicationContext struct { }
ApplicationContext application context
func (*ApplicationContext) GetInstance ¶ added in v0.7.1
func (a *ApplicationContext) GetInstance(params ...interface{}) (instance interface{})
GetInstance get application instance by name
func (*ApplicationContext) GetProperty ¶
func (a *ApplicationContext) GetProperty(name string) (value interface{}, ok bool)
GetProperty get application property by name
func (*ApplicationContext) RegisterController ¶
func (a *ApplicationContext) RegisterController(controller interface{}) error
RegisterController register controller by interface
func (*ApplicationContext) Use ¶
func (a *ApplicationContext) Use(handlers ...context.Handler)
Use use middleware
Click to show internal directories.
Click to hide internal directories.