Help us shape the future of Go! Take the 2026 Go Developer Survey

devheaders

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package devheaders provides convenience wiring for development-only auth headers.

This wrapper delegates to contrib/middleware/auth/devheaders and environment loading. Enable it only with explicit dangerous-bypass and trusted-proxy configuration; it is not production authentication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = devheaders.Config

Config aliases the dev headers middleware configuration.

func LoadConfig

func LoadConfig(loader *config.Loader) Config

LoadConfig reads dev headers configuration from environment.

type Middleware

type Middleware = devheaders.Middleware

Middleware aliases the dev headers middleware.

func New

func New(cfg Config, log ports.Logger) (*Middleware, error)

New constructs the dev headers middleware.

Jump to

Keyboard shortcuts

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