routes

package
v0.0.0-...-e75eb70 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const YuwSp string = "->"

Variables

This section is empty.

Functions

func Do

func Do(g *gin.RouterGroup, toFunc map[string][]gin.HandlerFunc)

func To

func To(r *gin.Engine)

func ToFunc

func ToFunc(tpl ...interface{}) template.FuncMap

func ToLoggerWithFormatter

func ToLoggerWithFormatter() gin.HandlerFunc

Types

type PoT

type PoT struct {
	Rcfg *Rcfg
	Rtpl *Rtpl
	Rarr *Rarr
}
var (
	RPoT *PoT
	RMaP map[string]interface{} = map[string]interface{}{}
)

type Rarr

type Rarr map[string]map[string][]gin.HandlerFunc

type Rcfg

type Rcfg []Routes

type Routes

type Routes interface {
	Tag() string
	Put(r *gin.Engine, toFunc map[string][]gin.HandlerFunc)
	ToFunc() template.FuncMap
}

type Rtpl

type Rtpl []interface{}

Jump to

Keyboard shortcuts

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