Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSessionDisconnected = errors.New("session disconnected") ErrConnectNotDone = errors.New("CONNECT not done") )
View Source
var CONNECT_DEADLINE int64 = 15
View Source
var (
ErrSessionNotFound = errors.New("session not found on this endpoint")
)
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface { Connect(transport.Metadata, *packet.Connect) (string, *packet.ConnAck, error) Disconnect(string, *packet.Disconnect) error Publish(string, *packet.Publish) (*packet.PubAck, error) Subscribe(string, *packet.Subscribe) (*packet.SubAck, error) Unsubscribe(string, *packet.Unsubscribe) (*packet.UnsubAck, error) RemoveSession(string) error }
Click to show internal directories.
Click to hide internal directories.