Documentation ¶
Index ¶
- Constants
- func SessionExpired(lastSeen int64, expiryInterval int64) bool
- type Client
- type Message
- type Retain
- type Retry
- type RunningSession
- func (s *RunningSession) ApplyAcl(pubAcl string, subAcl string)
- func (s *RunningSession) ApplySessionId(sessionID int64)
- func (s *RunningSession) CleanStart() bool
- func (s *RunningSession) Expired() bool
- func (s *RunningSession) FromLocalhost() bool
- func (s *RunningSession) GetClientId() string
- func (s *RunningSession) GetConn() TagyouConn
- func (s *RunningSession) GetConnected() bool
- func (s *RunningSession) GetExpiryInterval() int64
- func (s *RunningSession) GetId() int64
- func (s *RunningSession) GetKeepAlive() int
- func (s *RunningSession) GetLastConnect() int64
- func (s *RunningSession) GetLastSeen() int64
- func (s *RunningSession) GetProtocolVersion() uint8
- func (s *RunningSession) HavePass() bool
- func (s *RunningSession) HaveUser() bool
- func (s *RunningSession) ReservedBit() bool
- func (s *RunningSession) SetConnected(connected bool)
- func (s *RunningSession) WillFlag() bool
- func (s *RunningSession) WillQoS() uint8
- func (s *RunningSession) WillRetain() bool
- type Session
- func (s Session) Expired() bool
- func (s Session) GetClientId() string
- func (s Session) GetConnected() bool
- func (s Session) GetExpiryInterval() int64
- func (s Session) GetId() int64
- func (s Session) GetLastConnect() int64
- func (s Session) GetLastSeen() int64
- func (s Session) GetProtocolVersion() uint8
- type Subscription
- type SubscriptionGroup
- type TagyouConn
- type User
- type WebsocketConnection
Constants ¶
View Source
const WAIT_FOR_PUB_ACK = 10
qos 1
View Source
const WAIT_FOR_PUB_COMP = 21
View Source
const WAIT_FOR_PUB_REC = 20
qos 2
View Source
const WAIT_FOR_PUB_REL = 20
Variables ¶
This section is empty.
Functions ¶
func SessionExpired ¶
Types ¶
type Retry ¶
type RunningSession ¶
type RunningSession struct { ID int64 SessionID int64 ClientId string ProtocolVersion uint8 LastSeen int64 LastConnect int64 Connected bool ExpiryInterval int64 ConnectFlags uint8 KeepAlive int WillTopic string WillDelay int64 WillMessage []byte Username string Password string SubscribeAcl string PublishAcl string Conn TagyouConn Mu sync.RWMutex }
func (*RunningSession) ApplyAcl ¶
func (s *RunningSession) ApplyAcl(pubAcl string, subAcl string)
func (*RunningSession) ApplySessionId ¶
func (s *RunningSession) ApplySessionId(sessionID int64)
func (*RunningSession) CleanStart ¶
func (s *RunningSession) CleanStart() bool
func (*RunningSession) Expired ¶
func (s *RunningSession) Expired() bool
func (*RunningSession) FromLocalhost ¶
func (s *RunningSession) FromLocalhost() bool
func (*RunningSession) GetClientId ¶
func (s *RunningSession) GetClientId() string
func (*RunningSession) GetConn ¶
func (s *RunningSession) GetConn() TagyouConn
func (*RunningSession) GetConnected ¶
func (s *RunningSession) GetConnected() bool
func (*RunningSession) GetExpiryInterval ¶
func (s *RunningSession) GetExpiryInterval() int64
func (*RunningSession) GetId ¶
func (s *RunningSession) GetId() int64
func (*RunningSession) GetKeepAlive ¶
func (s *RunningSession) GetKeepAlive() int
func (*RunningSession) GetLastConnect ¶
func (s *RunningSession) GetLastConnect() int64
func (*RunningSession) GetLastSeen ¶
func (s *RunningSession) GetLastSeen() int64
func (*RunningSession) GetProtocolVersion ¶
func (s *RunningSession) GetProtocolVersion() uint8
func (*RunningSession) HavePass ¶
func (s *RunningSession) HavePass() bool
func (*RunningSession) HaveUser ¶
func (s *RunningSession) HaveUser() bool
func (*RunningSession) ReservedBit ¶
func (s *RunningSession) ReservedBit() bool
func (*RunningSession) SetConnected ¶
func (s *RunningSession) SetConnected(connected bool)
func (*RunningSession) WillFlag ¶
func (s *RunningSession) WillFlag() bool
func (*RunningSession) WillQoS ¶
func (s *RunningSession) WillQoS() uint8
func (*RunningSession) WillRetain ¶
func (s *RunningSession) WillRetain() bool
type Session ¶
type Session struct { ID int64 LastSeen int64 LastConnect int64 ExpiryInterval int64 ClientId string Connected bool ProtocolVersion uint8 }
func (Session) GetClientId ¶
func (Session) GetConnected ¶
func (Session) GetExpiryInterval ¶
func (Session) GetLastConnect ¶
func (Session) GetLastSeen ¶
func (Session) GetProtocolVersion ¶
type Subscription ¶
type SubscriptionGroup ¶
type SubscriptionGroup map[string][]Subscription
type TagyouConn ¶
type WebsocketConnection ¶
func (WebsocketConnection) Close ¶
func (c WebsocketConnection) Close() error
func (WebsocketConnection) RemoteAddr ¶
func (c WebsocketConnection) RemoteAddr() net.Addr
Click to show internal directories.
Click to hide internal directories.