middleware

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentTypeJSON

func ContentTypeJSON(next http.Handler) http.Handler

ContentTypeJSON sets the content type for requests to application/json

Types

type PanicMiddleware

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

func NewPanicMiddleware

func NewPanicMiddleware(config *config.Config) *PanicMiddleware

func (*PanicMiddleware) Middleware

func (pmw *PanicMiddleware) Middleware(next http.Handler) http.Handler

type RequestLoggerMiddleware

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

func NewRequestLoggerMiddleware

func NewRequestLoggerMiddleware(logger *logger.Logger) *RequestLoggerMiddleware

func (*RequestLoggerMiddleware) Middleware

func (mw *RequestLoggerMiddleware) Middleware(next http.Handler) http.Handler

type WebsocketMiddleware

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

func NewWebsocketMiddleware

func NewWebsocketMiddleware(config *config.Config) *WebsocketMiddleware

func (*WebsocketMiddleware) Middleware

func (wm *WebsocketMiddleware) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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