log

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSink

func NewSink(opts ...Option) (audit.Sink, error)

NewSink is the constructor for a Sink.

Types

type Option

type Option func(*logOptions)

func WithEncoding

func WithEncoding(encoding config.LogEncoding) Option

func WithPath

func WithPath(path string) Option

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

Sink is the structure in charge of sending audit events to a specified file location.

func (*Sink) Close

func (l *Sink) Close() error

func (*Sink) SendAudits

func (l *Sink) SendAudits(_ context.Context, events []audit.Event) error

func (*Sink) String

func (l *Sink) String() string

Jump to

Keyboard shortcuts

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