Documentation ¶
Index ¶
- func Tcp(acl Acl) error
- type Acl
- type AuthPacket
- type ConnackPacket
- type ConnectPacket
- type DisconnectPacket
- type PingreqPacket
- type PingrespPacket
- type PubackPacket
- type PubcompPacket
- type PublishPacket
- type PubrecPacket
- type PubrelPacket
- type Session
- type SubackPacket
- type SubscribePacket
- type UnsubackPacket
- type UnsubscribePacket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Acl ¶
type Acl interface { AllowConnect(packet *ConnectPacket) error AllowPublish(session *Session, packet *PublishPacket) error AllowSubscribe(session *Session, packet *SubscribePacket) error }
func DefaultAcl ¶
func DefaultAcl() Acl
type AuthPacket ¶
type AuthPacket struct { }
type ConnackPacket ¶
type ConnackPacket struct {
// contains filtered or unexported fields
}
type ConnectPacket ¶
type DisconnectPacket ¶
type DisconnectPacket struct { }
type PingreqPacket ¶
type PingreqPacket struct { }
type PingrespPacket ¶
type PingrespPacket struct { }
type PubackPacket ¶
type PubackPacket struct {
// contains filtered or unexported fields
}
type PubcompPacket ¶
type PubcompPacket struct {
// contains filtered or unexported fields
}
type PublishPacket ¶
type PubrecPacket ¶
type PubrecPacket struct {
// contains filtered or unexported fields
}
type PubrelPacket ¶
type PubrelPacket struct {
// contains filtered or unexported fields
}
type Session ¶
type Session struct { Conn net.Conn Reader *bufio.Reader Writer io.Writer Handler handler Acl Acl Subscriptions []*topicLevel SendQueue any ReceiveQueue any CleanSession bool WillFlag bool WillRetained bool ClientId string Username string Password string WillTopic string WillMsg string WillQos byte KeepAlive uint16 }
type SubackPacket ¶
type SubackPacket struct {
// contains filtered or unexported fields
}
type SubscribePacket ¶
type UnsubackPacket ¶
type UnsubackPacket struct {
// contains filtered or unexported fields
}
type UnsubscribePacket ¶
type UnsubscribePacket struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.