hub

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

type Hub struct {
	Connected    chan string
	Disconnected chan string
	// contains filtered or unexported fields
}

Hub - Abstraction between message publishers & subscribers, works as a multiplexer ( or router )

func New

func New(ctx context.Context, addr string, cap uint64) (*Hub, error)

New - Creates a new instance of hub, ready to be used

Jump to

Keyboard shortcuts

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