routerx

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestBind added in v0.0.7

func RequestBind(fn interface{}) gin.HandlerFunc

Types

type ApiEngine

type ApiEngine struct {
	// contains filtered or unexported fields
}

func Default added in v0.0.9

func Default() *ApiEngine

func NewRouter

func NewRouter(engine *gin.Engine) *ApiEngine

func (*ApiEngine) Engine added in v0.0.6

func (r *ApiEngine) Engine() *gin.Engine

func (*ApiEngine) NewGroup

func (c *ApiEngine) NewGroup(s string) *ApiGroup

func (*ApiEngine) Run

func (c *ApiEngine) Run(addr ...string) error

func (*ApiEngine) Use

func (r *ApiEngine) Use(middleware ...gin.HandlerFunc) *ApiEngine

type ApiGroup

type ApiGroup struct {
	// contains filtered or unexported fields
}

func DefaultGroup

func DefaultGroup(path string) *ApiGroup

func (*ApiGroup) Any

func (r *ApiGroup) Any(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) DELETE

func (r *ApiGroup) DELETE(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) GET

func (r *ApiGroup) GET(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) HEAD

func (r *ApiGroup) HEAD(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) Handle

func (r *ApiGroup) Handle(httpMethod, relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) NewGroup added in v0.0.9

func (r *ApiGroup) NewGroup(path string) *ApiGroup

func (*ApiGroup) OPTIONS

func (r *ApiGroup) OPTIONS(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) PATCH

func (r *ApiGroup) PATCH(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) POST

func (r *ApiGroup) POST(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) PUT

func (r *ApiGroup) PUT(relativePath string, fn interface{}) *ApiGroup

func (*ApiGroup) Use

func (r *ApiGroup) Use(middleware ...gin.HandlerFunc) *ApiGroup

Jump to

Keyboard shortcuts

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