middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentNegotiation

func ContentNegotiation(nextHandler http.Handler) http.Handler

func MessageParser

func MessageParser(messageType MessageType, nextHandler http.Handler) http.Handler

func PanicRecovery

func PanicRecovery(nextHandler http.Handler) http.Handler

Types

type ContextKey

type ContextKey string
const Message ContextKey = "message"

type MessageType

type MessageType interface {
	NewPointer() interface{}
	Dereference(pointer interface{}) interface{}
}

Jump to

Keyboard shortcuts

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