web

package
v0.0.0-...-b400081 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx context.Context, rw http.ResponseWriter, r *http.Request) error

type Middleware

type Middleware func(handler Handler) Handler

type Router

type Router interface {
	RouterGroup
	http.Handler
}

func NewRouter

func NewRouter(logger log.Logger, middleware ...Middleware) Router

type RouterGroup

type RouterGroup interface {
	Handle(method string, path string, handler Handler, middleware ...Middleware)
	HandleAll(path string, handler Handler, middleware ...Middleware)
	NewGroup(path string, middleware ...Middleware) RouterGroup
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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