Documentation ¶
Index ¶
- func GracefulShutdown()
- func Listen(env env.Env)
- func ListenTLS(env env.Env)
- type Manager
- func (m *Manager) AddConnection(conn *connection.Connection) (ok bool)
- func (m *Manager) Broadcast(message []byte) (err error)
- func (m *Manager) BroadcastIgnore(message []byte, id string) (err error)
- func (m *Manager) CloseConnection(conn *connection.Connection) (ok bool)
- func (m *Manager) GetAllUsers() (users []operation.Users)
- func (m *Manager) HandleMessage(msg string)
- func (m *Manager) Purge()
- func (m *Manager) Send(message []byte, to string) (err error)
- func (m *Manager) SendAnswer(from, to, sdp string, extra map[string]string)
- func (m *Manager) SendCandidate(from, to, candidate string)
- func (m *Manager) SendConnect(userId string)
- func (m *Manager) SendDisconnect(userId string)
- func (m *Manager) SendError(to, signature, message string)
- func (m *Manager) SendLock(userId string)
- func (m *Manager) SendOffer(from, to, sdp string, extra map[string]string)
- func (m *Manager) SendUnlock(userId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulShutdown ¶
func GracefulShutdown()
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddConnection ¶
func (m *Manager) AddConnection(conn *connection.Connection) (ok bool)
func (*Manager) BroadcastIgnore ¶
func (*Manager) CloseConnection ¶
func (m *Manager) CloseConnection(conn *connection.Connection) (ok bool)
func (*Manager) GetAllUsers ¶
func (*Manager) HandleMessage ¶
func (*Manager) SendAnswer ¶
func (*Manager) SendCandidate ¶
func (*Manager) SendConnect ¶
func (*Manager) SendDisconnect ¶
func (*Manager) SendUnlock ¶
Click to show internal directories.
Click to hide internal directories.