router

package
v0.0.0-...-ec15c9c Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareFunc

type MiddlewareFunc func(next http.Handler) xmate.Handler

type Router

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

func New

func New(lc fx.Lifecycle, l *slog.Logger) Router

func (Router) Handle

func (r Router) Handle(path string, handler xmate.Handler) *mux.Route

func (Router) HandleFunc

func (r Router) HandleFunc(path string, handler xmate.HandlerFunc) *mux.Route

func (Router) Subrouter

func (r Router) Subrouter(prefix string) Router

func (Router) Use

func (r Router) Use(mwf MiddlewareFunc)

Jump to

Keyboard shortcuts

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