list

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

Hub stores connections in doubly linked list

func New

func New() *Hub

New creates a new Hub

func (*Hub) Broadcast

func (h *Hub) Broadcast(m []byte)

Broadcast broadcast message to all connections

func (*Hub) Len

func (h *Hub) Len() int

Len returns number of active connections

func (*Hub) PutConn

func (h *Hub) PutConn(c hub.Conn)

PutConn puts a new connection into list

Jump to

Keyboard shortcuts

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