stream

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package stream allows to interact with different stream-processing platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Key      []byte
	Value    []byte
	Metadata []MetadataEntry
}

Message represents a message coming from a stream.

type MetadataEntry

type MetadataEntry struct {
	Key   []byte
	Value []byte
}

MetadataEntry represents a metadata entry.

type MsgHandler

type MsgHandler func(msg Message) error

A MsgHandler processes a message.

type Processor

type Processor interface {
	Process(ctx context.Context, entity string, h MsgHandler) error
}

A Processor represents a stream message processor.

Directories

Path Synopsis
Package kafka allows to process messages from a kafka topic ensuring at-least-once semantics.
Package kafka allows to process messages from a kafka topic ensuring at-least-once semantics.
Package streamtest provides utilities for stream testing.
Package streamtest provides utilities for stream testing.

Jump to

Keyboard shortcuts

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