router

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRoutes

func WithRoutes(l zerolog.Logger, routes RouteTable) *mux.Router

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	Handler     http.Handler
	HandlerFunc http.HandlerFunc
}

type RouteTable

type RouteTable []Routes

type Routes

type Routes []Route

Jump to

Keyboard shortcuts

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