muxutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindTree

func BindTree(r *mux.Router, tree []*RouterTree)

Types

type Router

type Router struct {
	Method       string
	RelativePath string
	Handler      gin.HandlerFunc
}

type RouterTree

type RouterTree struct {
	Middleware []gin.HandlerFunc
	Handler    []interface{}
}

func Use

func Use(handler ...gin.HandlerFunc) *RouterTree

func (*RouterTree) Append

func (r *RouterTree) Append(handler ...interface{}) *RouterTree

func (*RouterTree) Use

func (r *RouterTree) Use(handler ...gin.HandlerFunc) *RouterTree

Jump to

Keyboard shortcuts

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