membroadcaster

package
v0.0.0-...-a4d05e0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryBroadcaster

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

func New

func (*MemoryBroadcaster) AddPeer

func (b *MemoryBroadcaster) AddPeer(t *testing.T, peer interface{})

AddPeer adds a memory broadcaster peer that new events will be shared with.

func (*MemoryBroadcaster) Broadcast

func (b *MemoryBroadcaster) Broadcast(ctx context.Context, ev *types.Event) error

func (*MemoryBroadcaster) Close

func (b *MemoryBroadcaster) Close() error

func (*MemoryBroadcaster) Next

func (b *MemoryBroadcaster) Next(ctx context.Context) (*types.Event, error)

Jump to

Keyboard shortcuts

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