Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(structure StandardAppStructure) *kernel.Application
Bootstrap your application
func RegisterProviders ¶
func RegisterProviders(ps []kernel.ServiceProvider)
RegisterProviders register custom service providers
func Serve ¶
func Serve(addr string, routeRegister RouteHolder, structure StandardAppStructure)
Serve your application
Types ¶
type StandardAppStructure ¶
type StandardAppStructure struct { //application base path BasePath string //http middleware group MiddlewareGroup map[string][]http.RequestMiddleware //http middleware Middleware []http.RequestMiddleware }
StandardAppStructure for application bootstrap
Click to show internal directories.
Click to hide internal directories.