audit

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapWithAudit

func WrapWithAudit(next http.Handler, opts ...Option) http.Handler

WrapWithAudit wrap audit handler around next http.Handler

Types

type Option

type Option func(o *options)

Option is the functional argument for audit options

func WithBasePath

func WithBasePath(path string) Option

WithBasePath sets base path for audit logs

func WithMaxAgeDays

func WithMaxAgeDays(ageDays int) Option

WithMaxAgeDays sets age after which backed up rotated audit logs will be deleted

func WithMaxBackups

func WithMaxBackups(backups int) Option

WithMaxBackups sets maximum number of backed up rotated audit logs to maintain

func WithMaxSizeMB

func WithMaxSizeMB(size int) Option

WithMaxSizeMB sets max size of audit file before it is rotated

Jump to

Keyboard shortcuts

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