voicecall

package
v0.0.0-...-565cbbe Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hubs map[string]*Hub = make(map[string]*Hub)

Functions

func Register

func Register()

Types

type Connection

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

func (*Connection) Send

func (inst *Connection) Send(data []byte) error

func (*Connection) Start

func (inst *Connection) Start()

type HelloPacket

type HelloPacket struct {
	Type string
	Name string
	Id   int
}

type Hub

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

func Attach

func Attach(name string, conn *Connection) *Hub

func (*Hub) Broadcast

func (inst *Hub) Broadcast(recieverID int, data []byte)

Jump to

Keyboard shortcuts

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