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 ¶
func PeekFirst(ctx context.Context, es lipapi.ManagedEventStream) (lipapi.ManagedEventStream, error)
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.
Click to show internal directories.
Click to hide internal directories.