Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type L4Entry ¶ added in v0.67.0
type L4Entry struct {
AccountID types.AccountID
ServiceID types.ServiceID
Protocol Protocol
Host string // SNI hostname or listen address
SourceIP netip.Addr
DurationMs int64
BytesUpload int64
BytesDownload int64
// DenyReason, when non-empty, indicates the connection was denied.
// Values match the HTTP auth mechanism strings: "ip_restricted",
// "country_restricted", "geo_unavailable".
DenyReason string
}
L4Entry holds the data for a layer-4 (TCP/UDP) access log entry.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger sends access log entries to the management server via gRPC.
func NewLogger ¶
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) Close ¶ added in v0.66.3
func (l *Logger) Close()
Close stops the cleanup routine. Should be called during graceful shutdown.
Click to show internal directories.
Click to hide internal directories.