kafka

package
v1.51.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSink

func NewSink(ctx context.Context, logger *zap.Logger, cfg config.KafkaSinkConfig) (audit.Sink, error)

NewSink is the constructor for a Sink.

Types

type Encoder

type Encoder interface {
	Schema() sr.Schema
	Encode(v any) ([]byte, error)
}

Encoder represents an interface for encoding data and provide the schema.

type Sink

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

func (*Sink) Close

func (s *Sink) Close() error

Close implements audit.Sink.

func (*Sink) SendAudits

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

SendAudits implements audit.Sink.

func (*Sink) String

func (s *Sink) String() string

String implements audit.Sink.

Jump to

Keyboard shortcuts

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