accesslog

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger sends access log entries to the management server via gRPC.

func NewLogger

func NewLogger(client gRPCClient, logger *log.Logger, trustedProxies []netip.Prefix) *Logger

NewLogger creates a new access log Logger. The trustedProxies parameter configures which upstream proxy IP ranges are trusted for extracting the real client IP from X-Forwarded-For headers.

func (*Logger) Middleware

func (l *Logger) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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