handler

package
v0.0.0-...-981ed55 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouterAndStartServing

func CreateRouterAndStartServing(db database.Datastore, mq messaging.MsgContext, logger zerolog.Logger)

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

Types

type ApiKey

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

func (*ApiKey) Handler

func (a *ApiKey) Handler(next http.Handler) http.Handler

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)

Get accepts a pattern that should be routed to the handlerFn on a GET request

func (*RequestRouter) Patch

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

Patch accepts a pattern that should be routed to the handlerFn on a PATCH request

func (*RequestRouter) Post

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

Post accepts a pattern that should be routed to the handlerFn on a POST request

Jump to

Keyboard shortcuts

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