rith

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 10 Imported by: 0

README

a modern web framework

Working on it...

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 GetServer

func GetServer(kernel *http.Kernel) *fasthttp.Server

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 RouteHolder

type RouteHolder func(ro *router.Router, k *http.Kernel)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL