broadcast

package
v4.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupBroadcast

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

func NewGroupBroadcast

func NewGroupBroadcast() *GroupBroadcast

func (*GroupBroadcast) BroadcastMessage

func (gb *GroupBroadcast) BroadcastMessage(message Message)

func (*GroupBroadcast) BroadcastMessageTimeout

func (gb *GroupBroadcast) BroadcastMessageTimeout(message Message, timeout time.Duration) bool

func (*GroupBroadcast) ListenMessages

func (gb *GroupBroadcast) ListenMessages(stop <-chan struct{}, buffer uint) <-chan Message

func (*GroupBroadcast) Start

func (gb *GroupBroadcast) Start(stop <-chan struct{})

type Message

type Message string

Jump to

Keyboard shortcuts

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