hub

package
v0.0.0-...-dd83196 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager manager

Manager controls all publish/subscribe actions for connections

Functions

This section is empty.

Types

type Connection

type Connection struct {
	ID          string
	ClientName  string
	IPAddress   string
	ConnectedAt time.Time
	Subscribed  []string
	Out         chan message.SocketMessage
}

Connection maintains info about the connected device and subscribed events

func NewConnection

func NewConnection(ipAddress string, clientName string) Connection

NewConnection constructs a new Connection

Jump to

Keyboard shortcuts

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