Browse Source

Application API updated to include Application, for raw application type

retrieval; DestroyApplication, for destroying registered applications;
and removed SetParent, replacing it with SetMaster.
multiapp-subsubapp
Benjamin Shelton 3 months ago
parent
commit
b25071c29e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      api.go

+ 3
- 1
api.go View File

@ -13,6 +13,8 @@ import (
type Application interface {
AttachApplication(Application)
DestroyApplication(Application)
Application() *application
LoadSession()
BindGroup(path string) *RouterGroup
Bind(controller Controller) error
@ -24,7 +26,7 @@ type Application interface {
DefaultMiddleware()
SetMiddleware(middleware ...func(http.Handler) http.Handler) Application
SetDefaultRenderer(renderer render.Renderer) Application
SetParent(app Application)
SetMaster(app Application)
RegisterShutdownHook(hook ShutdownHook)
Listen() error
Stop()


Loading…
Cancel
Save