headerdate

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Location   string
	HeaderName string
}

type Middleware

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

func NewMiddleware

func NewMiddleware(cfg Config) (*Middleware, error)

func (*Middleware) InitMiddleware

func (m *Middleware) InitMiddleware(ctx context.Context, log *zap.Logger) error

func (*Middleware) UpdateRequest

func (m *Middleware) UpdateRequest(req *http.Request) error

Jump to

Keyboard shortcuts

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