middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(items ...Option) route.Middleware

Default creates middleware from the default audit registry.

func New

func New(config audit.Config, items ...Option) route.Middleware

New creates audit middleware.

func Use

func Use(registry *audit.Registry, items ...Option) route.Middleware

Use creates middleware from an audit registry.

Types

type Option

type Option func(*options)

Option configures audit HTTP middleware.

func Build

func Build(fn func(ctx *route.Context, entry *audit.Entry) error) Option

Build customizes the audit entry before writing.

func Next

func Next(fn func(ctx *route.Context) bool) Option

Next skips audit for matching requests.

Jump to

Keyboard shortcuts

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