accesslog

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log added in v1.6.4

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

Log type.

func New

func New(cfg *config.Config) *Log

New returns a new access log middleware.

func (*Log) ClientOnly added in v1.6.4

func (a *Log) ClientOnly() bool

(*Log).ClientOnly marks accesslog as a client-traffic observer; middleware.Setup excludes it from internal sub-pipelines so access logs reflect real client queries only.

func (*Log) Name added in v1.6.4

func (a *Log) Name() string

(*Log).Name returns the middleware name.

func (*Log) ServeDNS added in v1.6.4

func (a *Log) ServeDNS(ctx context.Context, ch *middleware.Chain)

(*Log).ServeDNS implements the Handle interface.

Jump to

Keyboard shortcuts

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