audit

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectConfigPath

func FindProjectConfigPath(cwd string) string

FindProjectConfigPath locates .m/config.yaml from cwd up to fs root.

func NewBatchSink

func NewBatchSink(base ports.AuditSink, batchSize int, flushInterval time.Duration) (ports.AuditSink, error)

func NewFileSink

func NewFileSink(path string, hmacSecret string) (ports.AuditSink, error)

func NewNoopSink

func NewNoopSink() ports.AuditSink

func NewSplunkSink

func NewSplunkSink(endpoint string, token string, tlsVerify bool) (ports.AuditSink, error)

Types

type Config

type Config struct {
	Backend    string `yaml:"backend"`
	Path       string `yaml:"path"`
	HMACSecret string `yaml:"hmac_secret"`
	Endpoint   string `yaml:"endpoint"`
	Token      string `yaml:"token"`
	TLSVerify  bool   `yaml:"tls_verify"`
	BatchSize  int    `yaml:"batch_size"`
	// FlushInterval controls periodic batch delivery.
	FlushInterval time.Duration `yaml:"-"`
}

func LoadConfig

func LoadConfig(paths ...string) (Config, error)

Jump to

Keyboard shortcuts

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