middleware

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResponse

func CreateResponse(w http.ResponseWriter, contentType string, status int, body interface{}) http.ResponseWriter

func Recoverer

func Recoverer(options RecovererOptions) func(http.Handler) http.Handler

Types

type RecovererOptions

type RecovererOptions struct {
	Debug    bool
	Sentry   bool
	Response RecovererResponse
}

type RecovererResponse

type RecovererResponse struct {
	Status      int
	ContentType string
	Body        interface{}
}

Jump to

Keyboard shortcuts

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