streamengine

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamEngine

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

StreamEngine is an engine that processes a of messages from a stream, with the order preserved.

func New

func New(processor goduck.Processor, streams []goduck.Stream) *StreamEngine

New creates a new StreamEngine

func NewFromEndpoint added in v0.3.0

func NewFromEndpoint(
	e endpoint.Endpoint,
	decoder goduck.EndpointDecoder,
	streams []goduck.Stream,
) *StreamEngine

NewFromEndpoint creates a StreamEngine from a go-kit endpoint

func (*StreamEngine) Run

func (e *StreamEngine) Run(ctx context.Context) error

Run starts processing the messages, until @ctx is closed

Jump to

Keyboard shortcuts

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