Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSTrafficker ¶
type WSTrafficker struct {
Chans struct {
Send chan []byte
Receive chan []byte
}
Client *websocket.Conn
Hostname string
}
func NewWSTrafficker ¶
func NewWSTrafficker(client *websocket.Conn) *WSTrafficker
type WSTraffickers ¶
type WSTraffickers struct {
ByAccessTokenHostname map[string]*WSTrafficker
}
func NewWSTraffickers ¶
func NewWSTraffickers() *WSTraffickers
func (*WSTraffickers) DeleteConnection ¶
func (wss *WSTraffickers) DeleteConnection(accessToken, hostname string) error
func (*WSTraffickers) GetConnectionByAccessTokenHostname ¶
func (wss *WSTraffickers) GetConnectionByAccessTokenHostname(accessToken, hostname string) *WSTrafficker
func (*WSTraffickers) SaveConnection ¶
func (wss *WSTraffickers) SaveConnection(accessToken string, conn *websocket.Conn) (*WSTrafficker, error)
Click to show internal directories.
Click to hide internal directories.