sink

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SinkNameLogBased = "log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAuditSink

type BaseAuditSink struct {
	Interface
	// contains filtered or unexported fields
}

func (*BaseAuditSink) Run

func (b *BaseAuditSink) Run(ctx context.Context, bus eventbus.EventBus)

type Initializer

type Initializer func(conf *global.AuditConfiguration, emitter metrics.MetricEmitter) Interface

type Interface

type Interface interface {
	GetHandler() eventbus.ConsumeFunc
	GetName() string
	GetBufferSize() int
	Run(ctx context.Context, bus eventbus.EventBus)
}

type LogBasedAuditSink

type LogBasedAuditSink struct {
	BaseAuditSink
	// contains filtered or unexported fields
}

func (*LogBasedAuditSink) GetBufferSize

func (f *LogBasedAuditSink) GetBufferSize() int

func (*LogBasedAuditSink) GetHandler

func (f *LogBasedAuditSink) GetHandler() eventbus.ConsumeFunc

func (*LogBasedAuditSink) GetName

func (f *LogBasedAuditSink) GetName() string

Jump to

Keyboard shortcuts

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