router

package
v0.0.0-...-33a8802 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index defines the response for the root GET request.

func New

func New(context api.Context) http.Handler

New initializes a new gorilla/mux router.

Types

type Route

type Route struct {
	Name     string
	Methods  []string
	Pattern  string
	IsPrefix bool
	Handler  http.Handler
}

Route is a single route descriptor.

type Routes

type Routes []Route

Routes is a list of routes.

Jump to

Keyboard shortcuts

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