options

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func NewMiddleware

func NewMiddleware(options ...MiddlewareOption) *Middleware

func (*Middleware) Wrap

type MiddlewareOption

type MiddlewareOption = func(*Middleware)

func WithCode

func WithCode(code int) MiddlewareOption

func WithHeaders

func WithHeaders(headers map[string]string) MiddlewareOption

func WithLogger

func WithLogger(logger contracts.Logger) MiddlewareOption

Jump to

Keyboard shortcuts

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