Documentation ¶
Index ¶
- Variables
- type Control
- func (*Control) Descriptor() ([]byte, []int)
- func (m *Control) GetAckCode() uint32
- func (m *Control) GetGroupID() uint32
- func (m *Control) GetMicPriority() uint32
- func (m *Control) GetOrgID() uint32
- func (m *Control) GetProtocolType() ProtocolType
- func (m *Control) GetRootGroupID() uint32
- func (m *Control) GetTopicPriority() uint32
- func (m *Control) GetUserID() uint32
- func (m *Control) Marshal() (dAtA []byte, err error)
- func (m *Control) MarshalTo(dAtA []byte) (int, error)
- func (*Control) ProtoMessage()
- func (m *Control) Reset()
- func (m *Control) Size() (n int)
- func (m *Control) String() string
- func (m *Control) Unmarshal(dAtA []byte) error
- func (m *Control) XXX_DiscardUnknown()
- func (m *Control) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Control) XXX_Merge(src proto.Message)
- func (m *Control) XXX_Size() int
- func (m *Control) XXX_Unmarshal(b []byte) error
- type ProtocolType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthOrder = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOrder = fmt.Errorf("proto: integer overflow") )
View Source
var ProtocolType_name = map[int32]string{
0: "UNKNOWN",
1: "CONNECT",
2: "CONNECTACK",
3: "SUB",
4: "SUBACK",
5: "UNSUB",
6: "UNSUBACK",
7: "HOLDMIC",
8: "HOLDMICACK",
9: "RELEASEMIC",
10: "RELEASEMICACK",
11: "DISCONNECT",
12: "DISCONNECTACK",
13: "REGISTER",
14: "REGISTERACK",
15: "SYSTEM",
16: "SYSTEMACK",
}
View Source
var ProtocolType_value = map[string]int32{
"UNKNOWN": 0,
"CONNECT": 1,
"CONNECTACK": 2,
"SUB": 3,
"SUBACK": 4,
"UNSUB": 5,
"UNSUBACK": 6,
"HOLDMIC": 7,
"HOLDMICACK": 8,
"RELEASEMIC": 9,
"RELEASEMICACK": 10,
"DISCONNECT": 11,
"DISCONNECTACK": 12,
"REGISTER": 13,
"REGISTERACK": 14,
"SYSTEM": 15,
"SYSTEMACK": 16,
}
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct { ProtocolType ProtocolType `protobuf:"varint,1,opt,name=protocolType,proto3,enum=order.ProtocolType" json:"protocolType,omitempty"` OrgID uint32 `protobuf:"varint,2,opt,name=orgID,proto3" json:"orgID,omitempty"` UserID uint32 `protobuf:"varint,3,opt,name=userID,proto3" json:"userID,omitempty"` RootGroupID uint32 `protobuf:"varint,4,opt,name=rootGroupID,proto3" json:"rootGroupID,omitempty"` GroupID uint32 `protobuf:"varint,5,opt,name=groupID,proto3" json:"groupID,omitempty"` AckCode uint32 `protobuf:"varint,6,opt,name=ackCode,proto3" json:"ackCode,omitempty"` TopicPriority uint32 `protobuf:"varint,8,opt,name=topicPriority,proto3" json:"topicPriority,omitempty"` MicPriority uint32 `protobuf:"varint,9,opt,name=micPriority,proto3" json:"micPriority,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Control) Descriptor ¶
func (*Control) GetAckCode ¶
func (*Control) GetGroupID ¶
func (*Control) GetMicPriority ¶
func (*Control) GetProtocolType ¶
func (m *Control) GetProtocolType() ProtocolType
func (*Control) GetRootGroupID ¶
func (*Control) GetTopicPriority ¶
func (*Control) ProtoMessage ¶
func (*Control) ProtoMessage()
func (*Control) XXX_DiscardUnknown ¶
func (m *Control) XXX_DiscardUnknown()
func (*Control) XXX_Marshal ¶
func (*Control) XXX_Unmarshal ¶
type ProtocolType ¶
type ProtocolType int32
协议类型
const ( ProtocolType_UNKNOWN ProtocolType = 0 ProtocolType_CONNECT ProtocolType = 1 ProtocolType_CONNECTACK ProtocolType = 2 ProtocolType_SUB ProtocolType = 3 ProtocolType_SUBACK ProtocolType = 4 ProtocolType_UNSUB ProtocolType = 5 ProtocolType_UNSUBACK ProtocolType = 6 ProtocolType_HOLDMIC ProtocolType = 7 ProtocolType_HOLDMICACK ProtocolType = 8 ProtocolType_RELEASEMIC ProtocolType = 9 ProtocolType_RELEASEMICACK ProtocolType = 10 ProtocolType_DISCONNECT ProtocolType = 11 ProtocolType_DISCONNECTACK ProtocolType = 12 ProtocolType_REGISTER ProtocolType = 13 ProtocolType_REGISTERACK ProtocolType = 14 ProtocolType_SYSTEM ProtocolType = 15 ProtocolType_SYSTEMACK ProtocolType = 16 )
func (ProtocolType) EnumDescriptor ¶
func (ProtocolType) EnumDescriptor() ([]byte, []int)
func (ProtocolType) String ¶
func (x ProtocolType) String() string
Click to show internal directories.
Click to hide internal directories.