dispatcher

package
v0.0.0-...-5469a11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//GlobbingURL the only url for router.
	GlobbingURL = baseURL + "*globbing"
)

Variables

This section is empty.

Functions

func Do

func Do(ctx *gin.Context)

Do do a action

func Register

func Register(objs ...interface{})

Register registers the structs that implement the some exported methods. Each struct in vars must be pointer type every objs must have at least one api: Command(*gin.Context)(interface{}, error ) every api's handler's signature must like this: ApiHandler(*gin.Context)(interface{}, error )

Types

This section is empty.

Jump to

Keyboard shortcuts

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