kafkaingest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Producer *kafka.Producer
	Topic    string
	Schema   Schema
}

Collector is a receiver of events that handles sending those events to a downstream Kafka broker.

func (Collector) Receive

func (s Collector) Receive(ev event.Event) error

type Schema

type Schema interface {
	SerializeKey(topic string, ev event.Event) ([]byte, error)
	SerializeValue(topic string, ev event.Event) ([]byte, error)
}

Schema serializes events.

func NewSchema

func NewSchema(schemaRegistry schemaregistry.Client, topic string) (Schema, int, int, error)

NewSchema initializes a new schema in the registry.

Jump to

Keyboard shortcuts

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