handler

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(ctx context.Context, partitionKey string, window iter.Seq[partition.Record]) error

Func is a function type that implements Handler.

func (Func) Handle

func (f Func) Handle(ctx context.Context, partitionKey string, window iter.Seq[partition.Record]) error

Handle calls the function.

type Handler

type Handler interface {
	// Handle processes a single window
	Handle(ctx context.Context, partitionKey string, window iter.Seq[partition.Record]) error
}

Handler defines the interface for processing windows.

Jump to

Keyboard shortcuts

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