models

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitCallback

type ExitCallback func()

type InitCallback

type InitCallback func() error

type JoinCallback added in v0.4.6

type JoinCallback func(ctx context.Context, leftRecord *Record, rightRecord *Record) error

type ProcessCallback

type ProcessCallback func(ctx context.Context, record *Record) error

type ProcessorCallbacks

type ProcessorCallbacks struct {
	OnInit  InitCallback
	Process ProcessCallback
	Join    JoinCallback
	OnExit  ExitCallback
}

type Record

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

func NewRecord

func NewRecord(key string, value []byte) *Record

func NewRecordWithConsumerMessage added in v0.4.3

func NewRecordWithConsumerMessage(msg *sarama.ConsumerMessage) *Record

func (*Record) Key

func (r *Record) Key() string

func (*Record) Value

func (r *Record) Value() []byte

Jump to

Keyboard shortcuts

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