routes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(routes []Route) *chi.Mux

NewRouter returns a router handle loaded with all the supported routes

Types

type Route

type Route struct {
	Method      string
	Path        string
	HandlerFunc http.HandlerFunc
}

Route defines a valid endpoint with the type of action supported on it

Jump to

Keyboard shortcuts

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