broadcast

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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 Broadcaster

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

func New

func New() Broadcaster

func (*Broadcaster) DeRegister

func (b *Broadcaster) DeRegister(client chan []byte)

func (*Broadcaster) Register

func (b *Broadcaster) Register() chan []byte

func (*Broadcaster) Send

func (b *Broadcaster) Send(data []byte)

func (*Broadcaster) Serve

func (b *Broadcaster) Serve()

func (*Broadcaster) Stop

func (b *Broadcaster) Stop()

Jump to

Keyboard shortcuts

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