static

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 12 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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

Router is the default router.

func NewRouter

func NewRouter(opts ...router.Option) *Router

NewRouter returns a new static router.

func (*Router) Deregister

func (r *Router) Deregister(route *router.Route) error

func (*Router) Endpoint

func (r *Router) Endpoint(req *http.Request) (*router.Route, error)

func (*Router) Options

func (r *Router) Options() router.Options

func (*Router) Register

func (r *Router) Register(route *router.Route) error

func (*Router) Route

func (r *Router) Route(req *http.Request) (*router.Route, error)

func (*Router) Stop

func (r *Router) Stop() error

Jump to

Keyboard shortcuts

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