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 int32 = 15
View Source
var (
ErrSessionNotFound = errors.New("session not found on this endpoint")
)
Functions ¶
Types ¶
type Broker ¶
type Broker interface { Connect(context.Context, transport.Metadata, *packet.Connect) (string, string, *packet.ConnAck, error) Disconnect(context.Context, string, *packet.Disconnect) error Publish(context.Context, string, *packet.Publish) (*packet.PubAck, error) Subscribe(context.Context, string, *packet.Subscribe) (*packet.SubAck, error) Unsubscribe(context.Context, string, *packet.Unsubscribe) (*packet.UnsubAck, error) CloseSession(context.Context, string) error PingReq(context.Context, string, *packet.PingReq) (*packet.PingResp, error) }
Click to show internal directories.
Click to hide internal directories.