stream

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 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 EventDataHandler

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

EventDataHandler is a handler for event data.

func NewEventDataHandler

func NewEventDataHandler(w provider.Writer, pr *provider.ParserRegistry) *EventDataHandler

NewEventDataHandler create a new handler for event data.

func (*EventDataHandler) Handle

func (h *EventDataHandler) Handle(ctx context.Context, payload []byte, headers map[string][]string) error

Handle handles all events that come.

type HandlerFunc

type HandlerFunc func(ctx context.Context, payload []byte, headers map[string][]string) error

Handler is the interface that must be implemented by the handler.

Jump to

Keyboard shortcuts

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