vigour

package module
v0.0.0-...-37fa697 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 0 Imported by: 0

README

vigour

Documentation

Index

Constants

View Source
const LISTEN_PORT = "8080"

Variables

View Source
var RoutesInfo map[string]Route

Functions

func AddRoute

func AddRoute(method string, controller *interface{}, path string, middlewares ...*interface{})

请求类型,控制器,请求地址,指向控制器,中间件

func DELETE

func DELETE(controller *interface{}, path string, middlewares ...*interface{})

func GET

func GET(controller *interface{}, path string, middlewares ...*interface{})
func HEAD(controller *interface{}, path string, middlewares ...*interface{})

func OPTIONS

func OPTIONS(controller *interface{}, path string, middlewares ...*interface{})

func PATCH

func PATCH(controller *interface{}, path string, middlewares ...*interface{})

func POST

func POST(controller *interface{}, path string, middlewares ...*interface{})

func PUT

func PUT(controller *interface{}, path string, middlewares ...*interface{})

Types

type Route

type Route struct {
	Controller string
	Method     string
	Middleware []*interface{}
}

type Vigour

type Vigour struct {
}

func Default

func Default() *Vigour

func (*Vigour) Run

func (v *Vigour) Run(addr string)

Jump to

Keyboard shortcuts

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