grouter

package
v0.0.0-...-5823538 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultUrlParam

func SetDefaultUrlParam(urlParam string)

Types

type DefaultRouter

type DefaultRouter struct {
	Router
}

func NewDefaultRouter

func NewDefaultRouter(engine *gin.Engine, middlewares ...gin.HandlerFunc) *DefaultRouter

func (*DefaultRouter) Register

func (d *DefaultRouter) Register(path string, view interface{}, middleware ...gin.HandlerFunc)

type Router

type Router struct {
	Group *gin.RouterGroup
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(engine *gin.Engine, middlewares ...gin.HandlerFunc) *Router

func (*Router) Register

func (r *Router) Register(path string, view interface{}, middleware ...gin.HandlerFunc)

func (*Router) SetRelativePath

func (r *Router) SetRelativePath(relativePath string)

func (*Router) SetTrailingSlash

func (r *Router) SetTrailingSlash(trailingSlash bool)

type UrlParam

type UrlParam interface {
	GetUrlParam() string
}

Jump to

Keyboard shortcuts

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