router

package
v0.0.0-...-fe81d13 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(path string) *Router

func (*Router) AddMiddleware

func (r *Router) AddMiddleware(middleware mid.Middleware)

func (*Router) AddRoute

func (r *Router) AddRoute(path string, handler http.Handler, middlewares ...mid.Middleware)

func (*Router) GetBasePath

func (r *Router) GetBasePath() string

func (*Router) Register

func (r *Router) Register(root *http.ServeMux)

Jump to

Keyboard shortcuts

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