Versions in this module Expand all Collapse all v0 v0.1.2 Dec 20, 2019 Changes in this version + func Nickname(nick string) string + type Channel struct + Clients map[int]*Client + ID int + Name string + Topic string + Type ChannelType + func NewChannel(id int, t ChannelType) *Channel + type ChannelList []*ChannelListing + func (c ChannelList) Len() int + func (c ChannelList) Less(i, j int) bool + func (c ChannelList) Swap(i, j int) + type ChannelListing struct + ID int + Name string + Topic string + Type ChannelType + type ChannelType int + const ChannelText + const ChannelUnknown + const ChannelVoice + type Client struct + AudioIn *audio.In + AudioOut *audio.Out + Channel *Channel + Conn *websocket.Conn + Connected bool + ID int + In chan *Message + Name string + Out chan *Message + PeerConnLock *sync.Mutex + PeerConns map[int]*webrtc.PeerConnection + Status int + Terminated chan bool + func NewClient(conn *websocket.Conn) *Client + func (c *Client) Close() + func (c *Client) CloseAudio() + func (c *Client) ClosePeerConn(id int) + func (c *Client) ClosePeerConns() + type Message struct + C int + M []byte + N string + PC int + S int + T MessageType + type MessageType int + const MessageAction + const MessageAnswer + const MessageBinary + const MessageCall + const MessageChannels + const MessageChat + const MessageConnect + const MessageDisconnect + const MessageJoin + const MessageNick + const MessagePing + const MessagePong + const MessageQuit + const MessageServers + const MessageTopic + const MessageTransmitStart + const MessageTransmitStop + const MessageTypingStart + const MessageTypingStop + const MessageUsers + func (t MessageType) String() string + type User struct + C int + ID int + N string + type UserList []*User + func (u UserList) Len() int + func (u UserList) Less(i, j int) bool + func (u UserList) Swap(i, j int)