signaling

package module
v0.0.0-...-9ba4946 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2015 License: MIT Imports: 12 Imported by: 0

README

signalingo

A general signaling server for WebRTC or others

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulShutdown

func GracefulShutdown()

func Listen

func Listen(env env.Env)

func ListenTLS

func ListenTLS(env env.Env)

Types

type Manager

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

func NewManager

func NewManager(env env.Env) *Manager

func (*Manager) AddConnection

func (m *Manager) AddConnection(conn *connection.Connection) (ok bool)

func (*Manager) Broadcast

func (m *Manager) Broadcast(message []byte) (err error)

func (*Manager) BroadcastIgnore

func (m *Manager) BroadcastIgnore(message []byte, id string) (err error)

func (*Manager) CloseConnection

func (m *Manager) CloseConnection(conn *connection.Connection) (ok bool)

func (*Manager) GetAllUsers

func (m *Manager) GetAllUsers() (users []operation.Users)

func (*Manager) HandleMessage

func (m *Manager) HandleMessage(msg string)

func (*Manager) Purge

func (m *Manager) Purge()

func (*Manager) Send

func (m *Manager) Send(message []byte, to string) (err error)

func (*Manager) SendAnswer

func (m *Manager) SendAnswer(from, to, sdp string, extra map[string]string)

func (*Manager) SendCandidate

func (m *Manager) SendCandidate(from, to, candidate string)

func (*Manager) SendConnect

func (m *Manager) SendConnect(userId string)

func (*Manager) SendDisconnect

func (m *Manager) SendDisconnect(userId string)

func (*Manager) SendError

func (m *Manager) SendError(to, signature, message string)

func (*Manager) SendLock

func (m *Manager) SendLock(userId string)

func (*Manager) SendOffer

func (m *Manager) SendOffer(from, to, sdp string, extra map[string]string)

func (*Manager) SendUnlock

func (m *Manager) SendUnlock(userId string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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