competing

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v0.13.0

type Consumer[T any] interface {
	Write() chan<- event.WriteEventReadStatus[T]
	Stream() <-chan ReadEventWAcc[T]
	Completed() <-chan event.ReadEvent[T]
	End() (pos uint64, err error)
	Name() string
}

func New

func New[T any](s stream.Stream, consBuilder consensus.ConsBuilderFunc, cryptoKey stream.CryptoKeyProvider, from store.StreamPosition, datatype string, timeout timeoutFunk[T], ctx context.Context) (out Consumer[T], err error)

type ReadEventWAcc added in v0.18.7

type ReadEventWAcc[T any] struct {
	event.ReadEvent[T]

	Acc func(T)
	CTX context.Context
}

Jump to

Keyboard shortcuts

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