Documentation
¶
Index ¶
- func FindProjectConfigPath(cwd string) string
- func NewBatchSink(base ports.AuditSink, batchSize int, flushInterval time.Duration) (ports.AuditSink, error)
- func NewFileSink(path string, hmacSecret string) (ports.AuditSink, error)
- func NewNoopSink() ports.AuditSink
- func NewSplunkSink(endpoint string, token string, tlsVerify bool) (ports.AuditSink, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectConfigPath ¶
FindProjectConfigPath locates .m/config.yaml from cwd up to fs root.
func NewBatchSink ¶
func NewNoopSink ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.