Documentation ¶
Index ¶
- type Client
- type ClientData
- type ClientType
- type Clients
- func (m *Clients) FuncIterationForClients(fn func(client *Client, isConnected bool) bool) bool
- func (m *Clients) GetRegisteredClients() int
- func (m *Clients) PurgeDisconnected()
- func (m *Clients) RegisterNewClient(clientType ClientType) *Client
- func (m *Clients) RegisterNewClientWithData(clientType ClientType, data ClientData) *Client
- func (manager *Clients) RemoveClient(conn *Client)
- func (manager *Clients) SetDisconnected(conn *Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Id string Data ClientData // contains filtered or unexported fields }
type ClientData ¶
type ClientData map[string]interface{}
type ClientType ¶
type ClientType uint8
const ( SseClient ClientType = 1 WsClient ClientType = 2 )
func (ClientType) IsValid ¶
func (ct ClientType) IsValid() bool
type Clients ¶
type Clients struct {
// contains filtered or unexported fields
}
func (*Clients) FuncIterationForClients ¶
func (*Clients) GetRegisteredClients ¶
func (*Clients) PurgeDisconnected ¶
func (m *Clients) PurgeDisconnected()
func (*Clients) RegisterNewClient ¶
func (m *Clients) RegisterNewClient(clientType ClientType) *Client
func (*Clients) RegisterNewClientWithData ¶
func (m *Clients) RegisterNewClientWithData(clientType ClientType, data ClientData) *Client
func (*Clients) RemoveClient ¶
func (*Clients) SetDisconnected ¶
Click to show internal directories.
Click to hide internal directories.