middleware

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdMiddleware

func IdMiddleware(next http.Handler) http.Handler

Types

type ContextWithId

type ContextWithId interface {
	context.Context
	Id() string
}

func Context

func Context(ctx context.Context) ContextWithId

type Errors

type Errors interface {
	ContextWithId
	Errors() []error
	AddError(err error)
}

func ContextWithErrors

func ContextWithErrors(ctx context.Context) Errors

func WithErrors

func WithErrors(ctx ContextWithId) Errors

Jump to

Keyboard shortcuts

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