router

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 11 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 {
	httprouter.Router
	OpenAPI    api.Api
	Middleware []middleware.MiddlewareHandler
}

func NewRouter

func NewRouter(name string, description string, version string) *Router

func (*Router) Handle

func (r *Router) Handle() http.Handler

func (*Router) NewRoute

func (r *Router) NewRoute(method string, uri string, ep endpoint.EndpointHandler, handlers ...middleware.MiddlewareHandler)

func (*Router) Use

func (r *Router) Use(h ...middleware.MiddlewareHandler)

Jump to

Keyboard shortcuts

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