routers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestParseJson

func RequestParseJson(fn interface{}) gin.HandlerFunc

Types

type ApiGroup

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

func DefaultGroup

func DefaultGroup(path string) *ApiGroup

func NewGroup

func NewGroup(r *ApiRouter, 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) 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

type ApiRouter

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

func NewRouter

func NewRouter() *ApiRouter

func (*ApiRouter) NewGroup

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

Jump to

Keyboard shortcuts

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