Documentation ¶
Index ¶
- Constants
- func ConnAckDecoder(fn connAckHandler) func(h *Header, buffer []byte) error
- func ConnAckLength(p *ConnAck) int
- func ConnectDecoder(fn connectHandler) func(h *Header, buffer []byte) error
- func ConnectLength(p *Connect) int
- func DisconnectDecoder(fn disconnectHandler) func(h *Header, buffer []byte) error
- func EncodeConnAck(p *ConnAck, buff []byte) (int, error)
- func EncodeConnect(p *Connect, buff []byte) (int, error)
- func EncodeDisconnect(p *Disconnect, buff []byte) (int, error)
- func EncodePingReq(p *PingReq, buff []byte) (int, error)
- func EncodePingResp(p *PingResp, buff []byte) (int, error)
- func EncodePubAck(p *PubAck, buff []byte) (int, error)
- func EncodePubComp(p *PubComp, buff []byte) (int, error)
- func EncodePubRec(p *PubRec, buff []byte) (int, error)
- func EncodePubRel(p *PubRel, buff []byte) (int, error)
- func EncodePublish(p *Publish, buff []byte) (int, error)
- func EncodeSubAck(p *SubAck, buff []byte) (int, error)
- func EncodeSubscribe(p *Subscribe, buff []byte) (int, error)
- func EncodeUnsubAck(p *UnsubAck, buff []byte) (int, error)
- func EncodeUnsubscribe(p *Unsubscribe, buff []byte) (int, error)
- func PingReqDecoder(fn pingReqHandler) func(h *Header, buffer []byte) error
- func PingReqLength(p *PingReq) int
- func PingRespDecoder(fn pingRespHandler) func(h *Header, buffer []byte) error
- func PingRespLength(p *PingResp) int
- func PubAckDecoder(fn pubAckHandler) func(h *Header, buffer []byte) error
- func PubAckLength(p *PubAck) int
- func PubCompDecoder(fn pubCompHandler) func(h *Header, buffer []byte) error
- func PubCompLength(p *PubComp) int
- func PubRecDecoder(fn pubRecHandler) func(h *Header, buffer []byte) error
- func PubRecLength(p *PubRec) int
- func PubRelDecoder(fn pubRelHandler) func(h *Header, buffer []byte) error
- func PubRelLength(p *PubRel) int
- func PublishDecoder(fn publishHandler) func(h *Header, buffer []byte) error
- func PublishLength(p *Publish) int
- func SubAckDecoder(fn subAckHandler) func(h *Header, buffer []byte) error
- func SubAckLength(p *SubAck) int
- func SubscribeDecoder(fn subscribeHandler) func(h *Header, buffer []byte) error
- func SubscribeLength(p *Subscribe) int
- func TypeString(p Packet) string
- func UnmarshalDisconnect(p *Disconnect, buff []byte) (int, error)
- func UnmarshalPingReq(p *PingReq, buff []byte) (int, error)
- func UnmarshalPingResp(p *PingResp, buff []byte) (int, error)
- func UnmarshalPubAck(p *PubAck, buff []byte) (int, error)
- func UnmarshalPubComp(p *PubComp, buff []byte) (int, error)
- func UnmarshalPubRec(p *PubRec, buff []byte) (int, error)
- func UnmarshalPubRel(p *PubRel, buff []byte) (int, error)
- func UnmarshalPublish(p *Publish, buff []byte) (int, error)
- func UnmarshalSubAck(p *SubAck, buff []byte) (int, error)
- func UnmarshalSubscribe(p *Subscribe, buff []byte) (int, error)
- func UnmarshalUnsubAck(p *UnsubAck, buff []byte) (int, error)
- func UnmarshalUnsubscribe(p *Unsubscribe, buff []byte) (int, error)
- func UnsubAckDecoder(fn unsubAckHandler) func(h *Header, buffer []byte) error
- func UnsubAckLength(p *UnsubAck) int
- func UnsubscribeDecoder(fn unsubscribeHandler) func(h *Header, buffer []byte) error
- func UnsubscribeLength(p *Unsubscribe) int
- type ConnAck
- func (*ConnAck) Descriptor() ([]byte, []int)
- func (p *ConnAck) Encode(buff []byte) (int, error)
- func (m *ConnAck) GetHeader() *Header
- func (m *ConnAck) GetReturnCode() int32
- func (p *ConnAck) GetType() byte
- func (p *ConnAck) Length() int
- func (*ConnAck) ProtoMessage()
- func (m *ConnAck) Reset()
- func (m *ConnAck) String() string
- func (*ConnAck) Type() byte
- func (c *ConnAck) UnmarshalMQTT(buf []byte) (int, error)
- func (m *ConnAck) XXX_DiscardUnknown()
- func (m *ConnAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnAck) XXX_Merge(src proto.Message)
- func (m *ConnAck) XXX_Size() int
- func (m *ConnAck) XXX_Unmarshal(b []byte) error
- type Connect
- func (*Connect) Descriptor() ([]byte, []int)
- func (p *Connect) Encode(buff []byte) (int, error)
- func (m *Connect) GetClean() bool
- func (m *Connect) GetClientId() []byte
- func (m *Connect) GetHeader() *Header
- func (m *Connect) GetKeepaliveTimer() int32
- func (m *Connect) GetPassword() []byte
- func (m *Connect) GetUsername() []byte
- func (m *Connect) GetWillPayload() []byte
- func (m *Connect) GetWillQos() int32
- func (m *Connect) GetWillRetain() bool
- func (m *Connect) GetWillTopic() []byte
- func (p *Connect) Length() int
- func (*Connect) ProtoMessage()
- func (m *Connect) Reset()
- func (m *Connect) String() string
- func (*Connect) Type() byte
- func (c *Connect) UnmarshalMQTT(buf []byte) (int, error)
- func (m *Connect) XXX_DiscardUnknown()
- func (m *Connect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Connect) XXX_Merge(src proto.Message)
- func (m *Connect) XXX_Size() int
- func (m *Connect) XXX_Unmarshal(b []byte) error
- type Decoder
- type Disconnect
- func (*Disconnect) Descriptor() ([]byte, []int)
- func (p *Disconnect) Encode(buff []byte) (int, error)
- func (m *Disconnect) GetHeader() *Header
- func (m *Disconnect) GetId() string
- func (p *Disconnect) Length() int
- func (*Disconnect) ProtoMessage()
- func (m *Disconnect) Reset()
- func (m *Disconnect) String() string
- func (*Disconnect) Type() byte
- func (c *Disconnect) UnmarshalMQTT(buf []byte) (int, error)
- func (m *Disconnect) XXX_DiscardUnknown()
- func (m *Disconnect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Disconnect) XXX_Merge(src proto.Message)
- func (m *Disconnect) XXX_Size() int
- func (m *Disconnect) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetDup() bool
- func (m *Header) GetQos() int32
- func (m *Header) GetRetain() bool
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Packet
- type PingReq
- func (*PingReq) Descriptor() ([]byte, []int)
- func (p *PingReq) Encode(buff []byte) (int, error)
- func (m *PingReq) GetHeader() *Header
- func (p *PingReq) Length() int
- func (*PingReq) ProtoMessage()
- func (m *PingReq) Reset()
- func (m *PingReq) String() string
- func (*PingReq) Type() byte
- func (c *PingReq) UnmarshalMQTT(buf []byte) (int, error)
- func (m *PingReq) XXX_DiscardUnknown()
- func (m *PingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingReq) XXX_Merge(src proto.Message)
- func (m *PingReq) XXX_Size() int
- func (m *PingReq) XXX_Unmarshal(b []byte) error
- type PingResp
- func (*PingResp) Descriptor() ([]byte, []int)
- func (p *PingResp) Encode(buff []byte) (int, error)
- func (m *PingResp) GetHeader() *Header
- func (p *PingResp) GetType() byte
- func (p *PingResp) Length() int
- func (*PingResp) ProtoMessage()
- func (m *PingResp) Reset()
- func (m *PingResp) String() string
- func (*PingResp) Type() byte
- func (c *PingResp) UnmarshalMQTT(buf []byte) (int, error)
- func (m *PingResp) XXX_DiscardUnknown()
- func (m *PingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingResp) XXX_Merge(src proto.Message)
- func (m *PingResp) XXX_Size() int
- func (m *PingResp) XXX_Unmarshal(b []byte) error
- type PubAck
- func (*PubAck) Descriptor() ([]byte, []int)
- func (p *PubAck) Encode(buff []byte) (int, error)
- func (m *PubAck) GetHeader() *Header
- func (m *PubAck) GetMessageId() int32
- func (p *PubAck) GetType() byte
- func (p *PubAck) Length() int
- func (*PubAck) ProtoMessage()
- func (m *PubAck) Reset()
- func (m *PubAck) String() string
- func (*PubAck) Type() byte
- func (c *PubAck) UnmarshalMQTT(buf []byte) (int, error)
- func (m *PubAck) XXX_DiscardUnknown()
- func (m *PubAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubAck) XXX_Merge(src proto.Message)
- func (m *PubAck) XXX_Size() int
- func (m *PubAck) XXX_Unmarshal(b []byte) error
- type PubComp
- func (*PubComp) Descriptor() ([]byte, []int)
- func (p *PubComp) Encode(buff []byte) (int, error)
- func (m *PubComp) GetHeader() *Header
- func (m *PubComp) GetMessageId() int32
- func (p *PubComp) GetType() byte
- func (p *PubComp) Length() int
- func (*PubComp) ProtoMessage()
- func (m *PubComp) Reset()
- func (m *PubComp) String() string
- func (*PubComp) Type() byte
- func (c *PubComp) UnmarshalMQTT(buf []byte) (int, error)
- func (m *PubComp) XXX_DiscardUnknown()
- func (m *PubComp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubComp) XXX_Merge(src proto.Message)
- func (m *PubComp) XXX_Size() int
- func (m *PubComp) XXX_Unmarshal(b []byte) error
- type PubRec
- func (*PubRec) Descriptor() ([]byte, []int)
- func (p *PubRec) Encode(buff []byte) (int, error)
- func (m *PubRec) GetHeader() *Header
- func (m *PubRec) GetMessageId() int32
- func (p *PubRec) GetType() byte
- func (p *PubRec) Length() int
- func (*PubRec) ProtoMessage()
- func (m *PubRec) Reset()
- func (m *PubRec) String() string
- func (*PubRec) Type() byte
- func (c *PubRec) UnmarshalMQTT(buf []byte) (int, error)
- func (m *PubRec) XXX_DiscardUnknown()
- func (m *PubRec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubRec) XXX_Merge(src proto.Message)
- func (m *PubRec) XXX_Size() int
- func (m *PubRec) XXX_Unmarshal(b []byte) error
- type PubRel
- func (*PubRel) Descriptor() ([]byte, []int)
- func (p *PubRel) Encode(buff []byte) (int, error)
- func (m *PubRel) GetHeader() *Header
- func (m *PubRel) GetMessageId() int32
- func (p *PubRel) GetType() byte
- func (p *PubRel) Length() int
- func (*PubRel) ProtoMessage()
- func (m *PubRel) Reset()
- func (m *PubRel) String() string
- func (*PubRel) Type() byte
- func (c *PubRel) UnmarshalMQTT(buf []byte) (int, error)
- func (m *PubRel) XXX_DiscardUnknown()
- func (m *PubRel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubRel) XXX_Merge(src proto.Message)
- func (m *PubRel) XXX_Size() int
- func (m *PubRel) XXX_Unmarshal(b []byte) error
- type Publish
- func (*Publish) Descriptor() ([]byte, []int)
- func (p *Publish) Encode(buff []byte) (int, error)
- func (m *Publish) GetHeader() *Header
- func (m *Publish) GetMessageId() int32
- func (m *Publish) GetPayload() []byte
- func (m *Publish) GetTopic() []byte
- func (p *Publish) GetType() byte
- func (p *Publish) Length() int
- func (*Publish) ProtoMessage()
- func (m *Publish) Reset()
- func (m *Publish) String() string
- func (*Publish) Type() byte
- func (c *Publish) UnmarshalMQTT(buf []byte) (int, error)
- func (m *Publish) XXX_DiscardUnknown()
- func (m *Publish) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Publish) XXX_Merge(src proto.Message)
- func (m *Publish) XXX_Size() int
- func (m *Publish) XXX_Unmarshal(b []byte) error
- type SubAck
- func (*SubAck) Descriptor() ([]byte, []int)
- func (p *SubAck) Encode(buff []byte) (int, error)
- func (m *SubAck) GetHeader() *Header
- func (m *SubAck) GetMessageId() int32
- func (m *SubAck) GetQos() []int32
- func (p *SubAck) GetType() byte
- func (p *SubAck) Length() int
- func (*SubAck) ProtoMessage()
- func (m *SubAck) Reset()
- func (m *SubAck) String() string
- func (*SubAck) Type() byte
- func (c *SubAck) UnmarshalMQTT(buf []byte) (int, error)
- func (m *SubAck) XXX_DiscardUnknown()
- func (m *SubAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubAck) XXX_Merge(src proto.Message)
- func (m *SubAck) XXX_Size() int
- func (m *SubAck) XXX_Unmarshal(b []byte) error
- type Subscribe
- func (*Subscribe) Descriptor() ([]byte, []int)
- func (p *Subscribe) Encode(buff []byte) (int, error)
- func (m *Subscribe) GetHeader() *Header
- func (m *Subscribe) GetMessageId() int32
- func (m *Subscribe) GetQos() []int32
- func (m *Subscribe) GetTopic() [][]byte
- func (p *Subscribe) Length() int
- func (*Subscribe) ProtoMessage()
- func (m *Subscribe) Reset()
- func (m *Subscribe) String() string
- func (*Subscribe) Type() byte
- func (c *Subscribe) UnmarshalMQTT(buf []byte) (int, error)
- func (m *Subscribe) XXX_DiscardUnknown()
- func (m *Subscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subscribe) XXX_Merge(src proto.Message)
- func (m *Subscribe) XXX_Size() int
- func (m *Subscribe) XXX_Unmarshal(b []byte) error
- type UnsubAck
- func (*UnsubAck) Descriptor() ([]byte, []int)
- func (p *UnsubAck) Encode(buff []byte) (int, error)
- func (m *UnsubAck) GetHeader() *Header
- func (m *UnsubAck) GetMessageId() int32
- func (p *UnsubAck) GetType() byte
- func (p *UnsubAck) Length() int
- func (*UnsubAck) ProtoMessage()
- func (m *UnsubAck) Reset()
- func (m *UnsubAck) String() string
- func (*UnsubAck) Type() byte
- func (c *UnsubAck) UnmarshalMQTT(buf []byte) (int, error)
- func (m *UnsubAck) XXX_DiscardUnknown()
- func (m *UnsubAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnsubAck) XXX_Merge(src proto.Message)
- func (m *UnsubAck) XXX_Size() int
- func (m *UnsubAck) XXX_Unmarshal(b []byte) error
- type Unsubscribe
- func (*Unsubscribe) Descriptor() ([]byte, []int)
- func (p *Unsubscribe) Encode(buff []byte) (int, error)
- func (m *Unsubscribe) GetHeader() *Header
- func (m *Unsubscribe) GetMessageId() int32
- func (m *Unsubscribe) GetTopic() [][]byte
- func (p *Unsubscribe) Length() int
- func (*Unsubscribe) ProtoMessage()
- func (m *Unsubscribe) Reset()
- func (m *Unsubscribe) String() string
- func (*Unsubscribe) Type() byte
- func (c *Unsubscribe) UnmarshalMQTT(buf []byte) (int, error)
- func (m *Unsubscribe) XXX_DiscardUnknown()
- func (m *Unsubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Unsubscribe) XXX_Merge(src proto.Message)
- func (m *Unsubscribe) XXX_Size() int
- func (m *Unsubscribe) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( CONNACK_CONNECTION_ACCEPTED int32 = iota CONNACK_REFUSED_BAD_PROTOCOL_VERSION CONNACK_REFUSED_IDENTIFIER_REJECTED CONNACK_REFUSED_SERVER_UNAVAILABLE CONNACK_REFUSED_BAD_USERNAME_OR_PASSWORD CONNACK_REFUSED_NOT_AUTHORIZED )
View Source
const ( CONNECT_FLAG_CLEAN_SESSION byte CONNECT_FLAG_WILL_FLAG CONNECT_FLAG_WILL_QOS byte = 3 << iota CONNECT_FLAG_WILL_RETAIN byte = 1 << iota CONNECT_FLAG_PASSWORD CONNECT_FLAG_USERNAME )
View Source
const ( RESERVED byte = iota CONNECT CONNACK PUBLISH PUBACK PUBREC PUBREL PUBCOMP SUBSCRIBE SUBACK UNSUBSCRIBE UNSUBACK PINGREQ PINGRESP DISCONNECT )
View Source
const DefaultKeepalive int32 = 30
Variables ¶
This section is empty.
Functions ¶
func ConnAckDecoder ¶
func ConnAckLength ¶
func ConnectDecoder ¶
func ConnectLength ¶
func DisconnectDecoder ¶
func EncodeDisconnect ¶
func EncodeDisconnect(p *Disconnect, buff []byte) (int, error)
func EncodeUnsubscribe ¶
func EncodeUnsubscribe(p *Unsubscribe, buff []byte) (int, error)
func PingReqDecoder ¶
func PingReqLength ¶
func PingRespDecoder ¶
func PingRespLength ¶
func PubAckDecoder ¶
func PubAckLength ¶
func PubCompDecoder ¶
func PubCompLength ¶
func PubRecDecoder ¶
func PubRecLength ¶
func PubRelDecoder ¶
func PubRelLength ¶
func PublishDecoder ¶
func PublishLength ¶
func SubAckDecoder ¶
func SubAckLength ¶
func SubscribeDecoder ¶
func SubscribeLength ¶
func TypeString ¶
func UnmarshalDisconnect ¶
func UnmarshalDisconnect(p *Disconnect, buff []byte) (int, error)
func UnmarshalUnsubscribe ¶
func UnmarshalUnsubscribe(p *Unsubscribe, buff []byte) (int, error)
func UnsubAckDecoder ¶
func UnsubAckLength ¶
func UnsubscribeDecoder ¶
func UnsubscribeLength ¶
func UnsubscribeLength(p *Unsubscribe) int
Types ¶
type ConnAck ¶
type ConnAck struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` ReturnCode int32 `protobuf:"varint,2,opt,name=returnCode,proto3" json:"returnCode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnAck) Descriptor ¶
func (*ConnAck) GetReturnCode ¶
func (*ConnAck) ProtoMessage ¶
func (*ConnAck) ProtoMessage()
func (*ConnAck) XXX_DiscardUnknown ¶
func (m *ConnAck) XXX_DiscardUnknown()
func (*ConnAck) XXX_Marshal ¶
func (*ConnAck) XXX_Unmarshal ¶
type Connect ¶
type Connect struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Clean bool `protobuf:"varint,3,opt,name=clean,proto3" json:"clean,omitempty"` ClientId []byte `protobuf:"bytes,4,opt,name=clientId,proto3" json:"clientId,omitempty"` Username []byte `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` Password []byte `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` WillTopic []byte `protobuf:"bytes,7,opt,name=willTopic,proto3" json:"willTopic,omitempty"` WillPayload []byte `protobuf:"bytes,8,opt,name=willPayload,proto3" json:"willPayload,omitempty"` WillQos int32 `protobuf:"varint,9,opt,name=willQos,proto3" json:"willQos,omitempty"` WillRetain bool `protobuf:"varint,10,opt,name=willRetain,proto3" json:"willRetain,omitempty"` KeepaliveTimer int32 `protobuf:"varint,11,opt,name=keepaliveTimer,proto3" json:"keepaliveTimer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Connect) Descriptor ¶
func (*Connect) GetClientId ¶
func (*Connect) GetKeepaliveTimer ¶
func (*Connect) GetPassword ¶
func (*Connect) GetUsername ¶
func (*Connect) GetWillPayload ¶
func (*Connect) GetWillQos ¶
func (*Connect) GetWillRetain ¶
func (*Connect) GetWillTopic ¶
func (*Connect) ProtoMessage ¶
func (*Connect) ProtoMessage()
func (*Connect) XXX_DiscardUnknown ¶
func (m *Connect) XXX_DiscardUnknown()
func (*Connect) XXX_Marshal ¶
func (*Connect) XXX_Unmarshal ¶
type Disconnect ¶
type Disconnect struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Disconnect) Descriptor ¶
func (*Disconnect) Descriptor() ([]byte, []int)
func (*Disconnect) GetHeader ¶
func (m *Disconnect) GetHeader() *Header
func (*Disconnect) GetId ¶
func (m *Disconnect) GetId() string
func (*Disconnect) Length ¶
func (p *Disconnect) Length() int
func (*Disconnect) ProtoMessage ¶
func (*Disconnect) ProtoMessage()
func (*Disconnect) Reset ¶
func (m *Disconnect) Reset()
func (*Disconnect) String ¶
func (m *Disconnect) String() string
func (*Disconnect) Type ¶
func (*Disconnect) Type() byte
func (*Disconnect) UnmarshalMQTT ¶
func (c *Disconnect) UnmarshalMQTT(buf []byte) (int, error)
func (*Disconnect) XXX_DiscardUnknown ¶
func (m *Disconnect) XXX_DiscardUnknown()
func (*Disconnect) XXX_Marshal ¶
func (m *Disconnect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Disconnect) XXX_Merge ¶
func (m *Disconnect) XXX_Merge(src proto.Message)
func (*Disconnect) XXX_Size ¶
func (m *Disconnect) XXX_Size() int
func (*Disconnect) XXX_Unmarshal ¶
func (m *Disconnect) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct { Dup bool `protobuf:"varint,1,opt,name=dup,proto3" json:"dup,omitempty"` Qos int32 `protobuf:"varint,2,opt,name=qos,proto3" json:"qos,omitempty"` Retain bool `protobuf:"varint,3,opt,name=retain,proto3" json:"retain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Header) Descriptor ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type PingReq ¶
type PingReq struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingReq) Descriptor ¶
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) XXX_DiscardUnknown ¶
func (m *PingReq) XXX_DiscardUnknown()
func (*PingReq) XXX_Marshal ¶
func (*PingReq) XXX_Unmarshal ¶
type PingResp ¶
type PingResp struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingResp) Descriptor ¶
func (*PingResp) ProtoMessage ¶
func (*PingResp) ProtoMessage()
func (*PingResp) XXX_DiscardUnknown ¶
func (m *PingResp) XXX_DiscardUnknown()
func (*PingResp) XXX_Marshal ¶
func (*PingResp) XXX_Unmarshal ¶
type PubAck ¶
type PubAck struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubAck) Descriptor ¶
func (*PubAck) GetMessageId ¶
func (*PubAck) ProtoMessage ¶
func (*PubAck) ProtoMessage()
func (*PubAck) XXX_DiscardUnknown ¶
func (m *PubAck) XXX_DiscardUnknown()
func (*PubAck) XXX_Marshal ¶
func (*PubAck) XXX_Unmarshal ¶
type PubComp ¶
type PubComp struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubComp) Descriptor ¶
func (*PubComp) GetMessageId ¶
func (*PubComp) ProtoMessage ¶
func (*PubComp) ProtoMessage()
func (*PubComp) XXX_DiscardUnknown ¶
func (m *PubComp) XXX_DiscardUnknown()
func (*PubComp) XXX_Marshal ¶
func (*PubComp) XXX_Unmarshal ¶
type PubRec ¶
type PubRec struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubRec) Descriptor ¶
func (*PubRec) GetMessageId ¶
func (*PubRec) ProtoMessage ¶
func (*PubRec) ProtoMessage()
func (*PubRec) XXX_DiscardUnknown ¶
func (m *PubRec) XXX_DiscardUnknown()
func (*PubRec) XXX_Marshal ¶
func (*PubRec) XXX_Unmarshal ¶
type PubRel ¶
type PubRel struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubRel) Descriptor ¶
func (*PubRel) GetMessageId ¶
func (*PubRel) ProtoMessage ¶
func (*PubRel) ProtoMessage()
func (*PubRel) XXX_DiscardUnknown ¶
func (m *PubRel) XXX_DiscardUnknown()
func (*PubRel) XXX_Marshal ¶
func (*PubRel) XXX_Unmarshal ¶
type Publish ¶
type Publish struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` Topic []byte `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Publish) Descriptor ¶
func (*Publish) GetMessageId ¶
func (*Publish) GetPayload ¶
func (*Publish) ProtoMessage ¶
func (*Publish) ProtoMessage()
func (*Publish) XXX_DiscardUnknown ¶
func (m *Publish) XXX_DiscardUnknown()
func (*Publish) XXX_Marshal ¶
func (*Publish) XXX_Unmarshal ¶
type SubAck ¶
type SubAck struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` Qos []int32 `protobuf:"varint,3,rep,packed,name=qos,proto3" json:"qos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubAck) Descriptor ¶
func (*SubAck) GetMessageId ¶
func (*SubAck) ProtoMessage ¶
func (*SubAck) ProtoMessage()
func (*SubAck) XXX_DiscardUnknown ¶
func (m *SubAck) XXX_DiscardUnknown()
func (*SubAck) XXX_Marshal ¶
func (*SubAck) XXX_Unmarshal ¶
type Subscribe ¶
type Subscribe struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` Topic [][]byte `protobuf:"bytes,3,rep,name=topic,proto3" json:"topic,omitempty"` Qos []int32 `protobuf:"varint,4,rep,packed,name=qos,proto3" json:"qos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Subscribe) Descriptor ¶
func (*Subscribe) GetMessageId ¶
func (*Subscribe) ProtoMessage ¶
func (*Subscribe) ProtoMessage()
func (*Subscribe) XXX_DiscardUnknown ¶
func (m *Subscribe) XXX_DiscardUnknown()
func (*Subscribe) XXX_Marshal ¶
func (*Subscribe) XXX_Unmarshal ¶
type UnsubAck ¶
type UnsubAck struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnsubAck) Descriptor ¶
func (*UnsubAck) GetMessageId ¶
func (*UnsubAck) ProtoMessage ¶
func (*UnsubAck) ProtoMessage()
func (*UnsubAck) XXX_DiscardUnknown ¶
func (m *UnsubAck) XXX_DiscardUnknown()
func (*UnsubAck) XXX_Marshal ¶
func (*UnsubAck) XXX_Unmarshal ¶
type Unsubscribe ¶
type Unsubscribe struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MessageId int32 `protobuf:"varint,2,opt,name=messageId,proto3" json:"messageId,omitempty"` Topic [][]byte `protobuf:"bytes,3,rep,name=topic,proto3" json:"topic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Unsubscribe) Descriptor ¶
func (*Unsubscribe) Descriptor() ([]byte, []int)
func (*Unsubscribe) GetHeader ¶
func (m *Unsubscribe) GetHeader() *Header
func (*Unsubscribe) GetMessageId ¶
func (m *Unsubscribe) GetMessageId() int32
func (*Unsubscribe) GetTopic ¶
func (m *Unsubscribe) GetTopic() [][]byte
func (*Unsubscribe) Length ¶
func (p *Unsubscribe) Length() int
func (*Unsubscribe) ProtoMessage ¶
func (*Unsubscribe) ProtoMessage()
func (*Unsubscribe) Reset ¶
func (m *Unsubscribe) Reset()
func (*Unsubscribe) String ¶
func (m *Unsubscribe) String() string
func (*Unsubscribe) Type ¶
func (*Unsubscribe) Type() byte
func (*Unsubscribe) UnmarshalMQTT ¶
func (c *Unsubscribe) UnmarshalMQTT(buf []byte) (int, error)
func (*Unsubscribe) XXX_DiscardUnknown ¶
func (m *Unsubscribe) XXX_DiscardUnknown()
func (*Unsubscribe) XXX_Marshal ¶
func (m *Unsubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Unsubscribe) XXX_Merge ¶
func (m *Unsubscribe) XXX_Merge(src proto.Message)
func (*Unsubscribe) XXX_Size ¶
func (m *Unsubscribe) XXX_Size() int
func (*Unsubscribe) XXX_Unmarshal ¶
func (m *Unsubscribe) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.