clients

package
v0.0.0-...-1b54048 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type Clients

type Clients struct {
	// Used for concurrent access to map and to ensure only one WriteJSON is active.
	// (Probably should use channels, but this works for now.)
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Clients

func (*Clients) Names

func (c *Clients) Names() []string

func (*Clients) Send

func (c *Clients) Send(name string, message interface{}) error

Jump to

Keyboard shortcuts

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