config

package
v0.0.0-...-7578c0e Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RotationDaily   = "daily"
	RotationWeekly  = "weekly"
	RotationMonthly = "monthly"
	RotationYearly  = "yearly"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable           bool   `mapstructure:"enable_audit_log"`
	UseIPObfuscation bool   `mapstructure:"use_ip_obfuscation"`
	Rotation         string `mapstructure:"audit_log_rotation"`
}

func (Config) RotationPeriod

func (c Config) RotationPeriod() time.Duration

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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