handler

package
v0.0.0-...-0323998 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouterAndStartServing

func CreateRouterAndStartServing(db database.Datastore)

CreateRouterAndStartServing creates a request router, registers all handlers and starts serving requests.

Types

type RequestRouter

type RequestRouter struct {
	// contains filtered or unexported fields
}

RequestRouter wraps the concrete router implementation

func (*RequestRouter) Get

func (router *RequestRouter) Get(pattern string, handlerFn http.HandlerFunc)

func (*RequestRouter) Post

func (router *RequestRouter) Post(pattern string, handlerFn http.HandlerFunc)

Jump to

Keyboard shortcuts

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