handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(routes []Route) (http.Handler, error)

Types

type Route

type Route struct {
	Target *url.URL
	// contains filtered or unexported fields
}

func NewRoute

func NewRoute(source string, target *url.URL) (Route, error)

func (Route) Pattern

func (r Route) Pattern() string

func (Route) Prefix

func (r Route) Prefix() string

func (Route) String

func (r Route) String() string

Jump to

Keyboard shortcuts

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