Documentation ¶
Index ¶
- func GetRequestEventBus(requestObj *http.Request) commonEventBus.EventBus
- func RequestContextAppend(requestObj *http.Request, key, val interface{})
- type Controller
- type Kernel
- func (k *Kernel) GetContainer() *gioc.Container
- func (k *Kernel) GetEventsRegistry() *commonEventBus.EventsRegistry
- func (k *Kernel) GetHttpServer() *http.Server
- func (k *Kernel) GetTemplates() *template.Template
- func (k *Kernel) RegisterListener(eventObj commonEvent.Event, listenerFunc interface{}, priority int) error
- func (k *Kernel) RegisterListenerForRoute(routeName string, eventObj commonEvent.Event, listenerFunc interface{}, ...) error
- func (k *Kernel) RegisterRoute(route *Route) *Kernel
- func (k *Kernel) RegisterService(alias string, factoryMethod interface{}, enableCaching bool) error
- func (k *Kernel) Run()
- type Route
- type TimeoutHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestEventBus ¶
func GetRequestEventBus(requestObj *http.Request) commonEventBus.EventBus
func RequestContextAppend ¶
Types ¶
type Kernel ¶
type Kernel struct {
// contains filtered or unexported fields
}
func (*Kernel) GetContainer ¶
func (*Kernel) GetEventsRegistry ¶
func (k *Kernel) GetEventsRegistry() *commonEventBus.EventsRegistry
func (*Kernel) GetHttpServer ¶
func (*Kernel) GetTemplates ¶
func (*Kernel) RegisterListener ¶
func (k *Kernel) RegisterListener(eventObj commonEvent.Event, listenerFunc interface{}, priority int) error
func (*Kernel) RegisterListenerForRoute ¶
func (*Kernel) RegisterRoute ¶
func (*Kernel) RegisterService ¶
type Route ¶
type Route struct { Name string Methods []string Url string Controller Controller Timeout time.Duration TimeoutHandler TimeoutHandler // contains filtered or unexported fields }
type TimeoutHandler ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.