streampeek

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManagedPrependFirst

func NewManagedPrependFirst(first lipapi.Event, rest lipapi.ManagedEventStream) lipapi.ManagedEventStream

NewManagedPrependFirst is the backend lifecycle-preserving form of NewPrependFirst.

func NewPrependFirst

func NewPrependFirst(first lipapi.Event, rest lipapi.EventStream) lipapi.EventStream

NewPrependFirst returns an EventStream whose first Recv returns first without calling rest. Later Recvs delegate to rest; if rest is nil, the second Recv returns io.EOF. Close forwards to rest when non-nil.

func PeekFirst

PeekFirst peeks the first event from a managed stream and returns a prepended stream. If the first Recv fails, the stream is closed and the error returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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