Documentation ¶
Index ¶
- type BinClient
- func (c *BinClient) Connected() bool
- func (c *BinClient) GetRemoteAddr() string
- func (c *BinClient) LastError() error
- func (c *BinClient) SendCountOfSubscribers(channel string, count int)
- func (c *BinClient) SendData(data *BinFrame)
- func (c *BinClient) SendDontNeedChannel(channels []string)
- func (c *BinClient) SendNeedChannel(channels []string)
- func (c *BinClient) SendNeedChannelOK(channels []string)
- func (c *BinClient) SendNeedChannels()
- func (c *BinClient) SendNoChannels(channels []string)
- func (c *BinClient) SendOpenedSession(sessionId string)
- func (c *BinClient) SessionId() string
- func (c *BinClient) SetDontNeedChannel(channelId string)
- func (c *BinClient) SetIncomingAll(incomingAll bool)
- func (c *BinClient) SetNeedChannel(channelId string)
- func (c *BinClient) SetNeedChannelOK(channels []string)
- func (c *BinClient) SetNoChannels(channels []string)
- func (c *BinClient) SetSession(sessionId string, userName string)
- func (c *BinClient) SetStat(statistics *utilities.Statistics)
- func (c *BinClient) Start()
- func (c *BinClient) Started() bool
- func (c *BinClient) Stat() *utilities.Statistics
- func (c *BinClient) Stop()
- func (c *BinClient) UserName() string
- type BinFrame
- type BinFrameTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinClient ¶
type BinClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(addr string, userName string, password string, chProcessingData chan BinFrameTask) *BinClient
func NewByConn ¶
func NewByConn(conn net.Conn, chProcessingData chan BinFrameTask, auth *users.Users, stat *utilities.Statistics) *BinClient
func (*BinClient) GetRemoteAddr ¶
func (*BinClient) SendCountOfSubscribers ¶
func (*BinClient) SendDontNeedChannel ¶
func (*BinClient) SendNeedChannel ¶
func (*BinClient) SendNeedChannelOK ¶
func (*BinClient) SendNeedChannels ¶
func (c *BinClient) SendNeedChannels()
func (*BinClient) SendNoChannels ¶
func (*BinClient) SendOpenedSession ¶
func (*BinClient) SetDontNeedChannel ¶
func (*BinClient) SetIncomingAll ¶
func (*BinClient) SetNeedChannel ¶
func (*BinClient) SetNeedChannelOK ¶
func (*BinClient) SetNoChannels ¶
func (*BinClient) SetSession ¶
func (*BinClient) SetStat ¶
func (c *BinClient) SetStat(statistics *utilities.Statistics)
func (*BinClient) Stat ¶
func (c *BinClient) Stat() *utilities.Statistics
type BinFrame ¶
func UnmarshalBinFrame ¶
type BinFrameTask ¶
Click to show internal directories.
Click to hide internal directories.