wrapper

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleFunc

type HandleFunc func(http.ResponseWriter, *http.Request)

type RouterWrapper

type RouterWrapper struct {
	Router *mux.Router

	SubPath string
	Methods []string
	Handler HandleFunc

	Children []*RouterWrapper
	Parent   *RouterWrapper
}

func New

func New(path string, methods []string, handler HandleFunc) *RouterWrapper

func (*RouterWrapper) Add

func (w *RouterWrapper) Add(child *RouterWrapper) error

func (*RouterWrapper) FullPath

func (w *RouterWrapper) FullPath() string

Jump to

Keyboard shortcuts

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