Documentation ¶
Overview ¶
Package pr is a generated protocol buffer package.
It is generated from these files:
github.com/emsihyo/go.im/comps/pr/message.proto
It has these top-level messages:
ReqLogin RespLogin ReqLogout RespLogout ReqSubscribe RespSubscribe ReqUnsubscribe RespUnsubscribe EmitSend ReqDeliver RespDeliver ReqPing RespPing Consumer Topic Message
Index ¶
- Variables
- type Consumer
- func (*Consumer) Descriptor() ([]byte, []int)
- func (m *Consumer) GetAvartar() string
- func (m *Consumer) GetID() string
- func (m *Consumer) GetName() string
- func (m *Consumer) GetUpdateAt() int64
- func (m *Consumer) Marshal() (dAtA []byte, err error)
- func (m *Consumer) MarshalTo(dAtA []byte) (int, error)
- func (*Consumer) ProtoMessage()
- func (m *Consumer) Reset()
- func (m *Consumer) Size() (n int)
- func (this *Consumer) String() string
- func (m *Consumer) Unmarshal(dAtA []byte) error
- type EmitSend
- func (*EmitSend) Descriptor() ([]byte, []int)
- func (m *EmitSend) GetMessage() *Message
- func (m *EmitSend) Marshal() (dAtA []byte, err error)
- func (m *EmitSend) MarshalTo(dAtA []byte) (int, error)
- func (*EmitSend) ProtoMessage()
- func (m *EmitSend) Reset()
- func (m *EmitSend) Size() (n int)
- func (this *EmitSend) String() string
- func (m *EmitSend) Unmarshal(dAtA []byte) error
- type Err
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetAt() int64
- func (m *Message) GetBody() string
- func (m *Message) GetCID() string
- func (m *Message) GetFrom() *Consumer
- func (m *Message) GetSID() int64
- func (m *Message) GetTo() *Topic
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (this *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- type ReqDeliver
- func (*ReqDeliver) Descriptor() ([]byte, []int)
- func (m *ReqDeliver) GetMessage() *Message
- func (m *ReqDeliver) Marshal() (dAtA []byte, err error)
- func (m *ReqDeliver) MarshalTo(dAtA []byte) (int, error)
- func (*ReqDeliver) ProtoMessage()
- func (m *ReqDeliver) Reset()
- func (m *ReqDeliver) Size() (n int)
- func (this *ReqDeliver) String() string
- func (m *ReqDeliver) Unmarshal(dAtA []byte) error
- type ReqLogin
- func (*ReqLogin) Descriptor() ([]byte, []int)
- func (m *ReqLogin) GetPassword() string
- func (m *ReqLogin) GetPlatform() string
- func (m *ReqLogin) GetUserID() string
- func (m *ReqLogin) Marshal() (dAtA []byte, err error)
- func (m *ReqLogin) MarshalTo(dAtA []byte) (int, error)
- func (*ReqLogin) ProtoMessage()
- func (m *ReqLogin) Reset()
- func (m *ReqLogin) Size() (n int)
- func (this *ReqLogin) String() string
- func (m *ReqLogin) Unmarshal(dAtA []byte) error
- type ReqLogout
- func (*ReqLogout) Descriptor() ([]byte, []int)
- func (m *ReqLogout) Marshal() (dAtA []byte, err error)
- func (m *ReqLogout) MarshalTo(dAtA []byte) (int, error)
- func (*ReqLogout) ProtoMessage()
- func (m *ReqLogout) Reset()
- func (m *ReqLogout) Size() (n int)
- func (this *ReqLogout) String() string
- func (m *ReqLogout) Unmarshal(dAtA []byte) error
- type ReqPing
- func (*ReqPing) Descriptor() ([]byte, []int)
- func (m *ReqPing) Marshal() (dAtA []byte, err error)
- func (m *ReqPing) MarshalTo(dAtA []byte) (int, error)
- func (*ReqPing) ProtoMessage()
- func (m *ReqPing) Reset()
- func (m *ReqPing) Size() (n int)
- func (this *ReqPing) String() string
- func (m *ReqPing) Unmarshal(dAtA []byte) error
- type ReqSubscribe
- func (*ReqSubscribe) Descriptor() ([]byte, []int)
- func (m *ReqSubscribe) GetMaxCount() int64
- func (m *ReqSubscribe) GetMinSID() int64
- func (m *ReqSubscribe) GetTopicID() string
- func (m *ReqSubscribe) Marshal() (dAtA []byte, err error)
- func (m *ReqSubscribe) MarshalTo(dAtA []byte) (int, error)
- func (*ReqSubscribe) ProtoMessage()
- func (m *ReqSubscribe) Reset()
- func (m *ReqSubscribe) Size() (n int)
- func (this *ReqSubscribe) String() string
- func (m *ReqSubscribe) Unmarshal(dAtA []byte) error
- type ReqUnsubscribe
- func (*ReqUnsubscribe) Descriptor() ([]byte, []int)
- func (m *ReqUnsubscribe) GetTopicID() string
- func (m *ReqUnsubscribe) Marshal() (dAtA []byte, err error)
- func (m *ReqUnsubscribe) MarshalTo(dAtA []byte) (int, error)
- func (*ReqUnsubscribe) ProtoMessage()
- func (m *ReqUnsubscribe) Reset()
- func (m *ReqUnsubscribe) Size() (n int)
- func (this *ReqUnsubscribe) String() string
- func (m *ReqUnsubscribe) Unmarshal(dAtA []byte) error
- type RespDeliver
- func (*RespDeliver) Descriptor() ([]byte, []int)
- func (m *RespDeliver) GetAt() int64
- func (m *RespDeliver) GetCode() int32
- func (m *RespDeliver) GetDesc() string
- func (m *RespDeliver) GetSID() int64
- func (m *RespDeliver) Marshal() (dAtA []byte, err error)
- func (m *RespDeliver) MarshalTo(dAtA []byte) (int, error)
- func (*RespDeliver) ProtoMessage()
- func (m *RespDeliver) Reset()
- func (m *RespDeliver) Size() (n int)
- func (this *RespDeliver) String() string
- func (m *RespDeliver) Unmarshal(dAtA []byte) error
- type RespLogin
- func (*RespLogin) Descriptor() ([]byte, []int)
- func (m *RespLogin) GetCode() int32
- func (m *RespLogin) GetDesc() string
- func (m *RespLogin) Marshal() (dAtA []byte, err error)
- func (m *RespLogin) MarshalTo(dAtA []byte) (int, error)
- func (*RespLogin) ProtoMessage()
- func (m *RespLogin) Reset()
- func (m *RespLogin) Size() (n int)
- func (this *RespLogin) String() string
- func (m *RespLogin) Unmarshal(dAtA []byte) error
- type RespLogout
- func (*RespLogout) Descriptor() ([]byte, []int)
- func (m *RespLogout) GetCode() int32
- func (m *RespLogout) GetDesc() string
- func (m *RespLogout) Marshal() (dAtA []byte, err error)
- func (m *RespLogout) MarshalTo(dAtA []byte) (int, error)
- func (*RespLogout) ProtoMessage()
- func (m *RespLogout) Reset()
- func (m *RespLogout) Size() (n int)
- func (this *RespLogout) String() string
- func (m *RespLogout) Unmarshal(dAtA []byte) error
- type RespPing
- func (*RespPing) Descriptor() ([]byte, []int)
- func (m *RespPing) Marshal() (dAtA []byte, err error)
- func (m *RespPing) MarshalTo(dAtA []byte) (int, error)
- func (*RespPing) ProtoMessage()
- func (m *RespPing) Reset()
- func (m *RespPing) Size() (n int)
- func (this *RespPing) String() string
- func (m *RespPing) Unmarshal(dAtA []byte) error
- type RespSubscribe
- func (*RespSubscribe) Descriptor() ([]byte, []int)
- func (m *RespSubscribe) GetCode() int32
- func (m *RespSubscribe) GetDesc() string
- func (m *RespSubscribe) GetHistories() []*Message
- func (m *RespSubscribe) Marshal() (dAtA []byte, err error)
- func (m *RespSubscribe) MarshalTo(dAtA []byte) (int, error)
- func (*RespSubscribe) ProtoMessage()
- func (m *RespSubscribe) Reset()
- func (m *RespSubscribe) Size() (n int)
- func (this *RespSubscribe) String() string
- func (m *RespSubscribe) Unmarshal(dAtA []byte) error
- type RespUnsubscribe
- func (*RespUnsubscribe) Descriptor() ([]byte, []int)
- func (m *RespUnsubscribe) GetCode() int32
- func (m *RespUnsubscribe) GetDesc() string
- func (m *RespUnsubscribe) Marshal() (dAtA []byte, err error)
- func (m *RespUnsubscribe) MarshalTo(dAtA []byte) (int, error)
- func (*RespUnsubscribe) ProtoMessage()
- func (m *RespUnsubscribe) Reset()
- func (m *RespUnsubscribe) Size() (n int)
- func (this *RespUnsubscribe) String() string
- func (m *RespUnsubscribe) Unmarshal(dAtA []byte) error
- type Topic
- func (*Topic) Descriptor() ([]byte, []int)
- func (m *Topic) GetAvartar() string
- func (m *Topic) GetGroup() bool
- func (m *Topic) GetID() string
- func (m *Topic) GetTitle() string
- func (m *Topic) GetUpdateAt() int64
- func (m *Topic) Marshal() (dAtA []byte, err error)
- func (m *Topic) MarshalTo(dAtA []byte) (int, error)
- func (*Topic) ProtoMessage()
- func (m *Topic) Reset()
- func (m *Topic) Size() (n int)
- func (this *Topic) String() string
- func (m *Topic) Unmarshal(dAtA []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") )
View Source
var Err_name = map[int32]string{
0: "UserIDWrong",
1: "PasswordWrong",
2: "NotLogin",
}
View Source
var Err_value = map[string]int32{
"UserIDWrong": 0,
"PasswordWrong": 1,
"NotLogin": 2,
}
View Source
var Type_name = map[int32]string{
0: "Ping",
1: "Login",
2: "Logout",
3: "Subscribe",
4: "Unsubscribe",
5: "Send",
6: "Deliver",
}
View Source
var Type_value = map[string]int32{
"Ping": 0,
"Login": 1,
"Logout": 2,
"Subscribe": 3,
"Unsubscribe": 4,
"Send": 5,
"Deliver": 6,
}
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id,omitempty" bson:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name,omitempty" bson:"name,omitempty"` Avartar string `protobuf:"bytes,3,opt,name=Avartar,proto3" json:"avartar,omitempty" bson:"avartar,omitempty"` UpdateAt int64 `protobuf:"varint,4,opt,name=UpdateAt,proto3" json:"update_at,omitempty" bson:"update_at,omitempty"` }
func (*Consumer) Descriptor ¶
func (*Consumer) GetAvartar ¶
func (*Consumer) GetUpdateAt ¶
func (*Consumer) ProtoMessage ¶
func (*Consumer) ProtoMessage()
type EmitSend ¶
type EmitSend struct {
Message *Message `protobuf:"bytes,1,opt,name=Message" json:"Message,omitempty"`
}
func (*EmitSend) Descriptor ¶
func (*EmitSend) GetMessage ¶
func (*EmitSend) ProtoMessage ¶
func (*EmitSend) ProtoMessage()
type Message ¶
type Message struct { CID string `protobuf:"bytes,1,opt,name=CID,proto3" json:"cid,omitempty" bson:"cid,omitempty"` SID int64 `protobuf:"varint,2,opt,name=SID,proto3" json:"sid,omitempty" bson:"sid,omitempty"` From *Consumer `protobuf:"bytes,3,opt,name=From" json:"from,omitempty" bson:"from,omitempty"` To *Topic `protobuf:"bytes,4,opt,name=To" json:"to,omitempty" bson:"to,omitempty"` At int64 `protobuf:"varint,5,opt,name=At,proto3" json:"at,omitempty" bson:"at,omitempty"` Body string `protobuf:"bytes,6,opt,name=Body,proto3" json:"body,omitempty" bson:"content,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type ReqDeliver ¶
type ReqDeliver struct {
Message *Message `protobuf:"bytes,1,opt,name=Message" json:"Message,omitempty"`
}
func (*ReqDeliver) Descriptor ¶
func (*ReqDeliver) Descriptor() ([]byte, []int)
func (*ReqDeliver) GetMessage ¶
func (m *ReqDeliver) GetMessage() *Message
func (*ReqDeliver) Marshal ¶
func (m *ReqDeliver) Marshal() (dAtA []byte, err error)
func (*ReqDeliver) ProtoMessage ¶
func (*ReqDeliver) ProtoMessage()
func (*ReqDeliver) Reset ¶
func (m *ReqDeliver) Reset()
func (*ReqDeliver) Size ¶
func (m *ReqDeliver) Size() (n int)
func (*ReqDeliver) String ¶
func (this *ReqDeliver) String() string
func (*ReqDeliver) Unmarshal ¶
func (m *ReqDeliver) Unmarshal(dAtA []byte) error
type ReqLogin ¶
type ReqLogin struct { UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` Platform string `protobuf:"bytes,3,opt,name=Platform,proto3" json:"Platform,omitempty"` }
func (*ReqLogin) Descriptor ¶
func (*ReqLogin) GetPassword ¶
func (*ReqLogin) GetPlatform ¶
func (*ReqLogin) ProtoMessage ¶
func (*ReqLogin) ProtoMessage()
type ReqLogout ¶
type ReqLogout struct { }
func (*ReqLogout) Descriptor ¶
func (*ReqLogout) ProtoMessage ¶
func (*ReqLogout) ProtoMessage()
type ReqPing ¶
type ReqPing struct { }
func (*ReqPing) Descriptor ¶
func (*ReqPing) ProtoMessage ¶
func (*ReqPing) ProtoMessage()
type ReqSubscribe ¶
type ReqSubscribe struct { TopicID string `protobuf:"bytes,1,opt,name=TopicID,proto3" json:"TopicID,omitempty"` MinSID int64 `protobuf:"varint,2,opt,name=MinSID,proto3" json:"MinSID,omitempty"` MaxCount int64 `protobuf:"varint,3,opt,name=MaxCount,proto3" json:"MaxCount,omitempty"` }
func (*ReqSubscribe) Descriptor ¶
func (*ReqSubscribe) Descriptor() ([]byte, []int)
func (*ReqSubscribe) GetMaxCount ¶
func (m *ReqSubscribe) GetMaxCount() int64
func (*ReqSubscribe) GetMinSID ¶
func (m *ReqSubscribe) GetMinSID() int64
func (*ReqSubscribe) GetTopicID ¶
func (m *ReqSubscribe) GetTopicID() string
func (*ReqSubscribe) Marshal ¶
func (m *ReqSubscribe) Marshal() (dAtA []byte, err error)
func (*ReqSubscribe) ProtoMessage ¶
func (*ReqSubscribe) ProtoMessage()
func (*ReqSubscribe) Reset ¶
func (m *ReqSubscribe) Reset()
func (*ReqSubscribe) Size ¶
func (m *ReqSubscribe) Size() (n int)
func (*ReqSubscribe) String ¶
func (this *ReqSubscribe) String() string
func (*ReqSubscribe) Unmarshal ¶
func (m *ReqSubscribe) Unmarshal(dAtA []byte) error
type ReqUnsubscribe ¶
type ReqUnsubscribe struct {
TopicID string `protobuf:"bytes,1,opt,name=TopicID,proto3" json:"TopicID,omitempty"`
}
func (*ReqUnsubscribe) Descriptor ¶
func (*ReqUnsubscribe) Descriptor() ([]byte, []int)
func (*ReqUnsubscribe) GetTopicID ¶
func (m *ReqUnsubscribe) GetTopicID() string
func (*ReqUnsubscribe) Marshal ¶
func (m *ReqUnsubscribe) Marshal() (dAtA []byte, err error)
func (*ReqUnsubscribe) ProtoMessage ¶
func (*ReqUnsubscribe) ProtoMessage()
func (*ReqUnsubscribe) Reset ¶
func (m *ReqUnsubscribe) Reset()
func (*ReqUnsubscribe) Size ¶
func (m *ReqUnsubscribe) Size() (n int)
func (*ReqUnsubscribe) String ¶
func (this *ReqUnsubscribe) String() string
func (*ReqUnsubscribe) Unmarshal ¶
func (m *ReqUnsubscribe) Unmarshal(dAtA []byte) error
type RespDeliver ¶
type RespDeliver struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Desc string `protobuf:"bytes,2,opt,name=Desc,proto3" json:"Desc,omitempty"` SID int64 `protobuf:"varint,3,opt,name=SID,proto3" json:"SID,omitempty"` At int64 `protobuf:"varint,4,opt,name=At,proto3" json:"At,omitempty"` }
func (*RespDeliver) Descriptor ¶
func (*RespDeliver) Descriptor() ([]byte, []int)
func (*RespDeliver) GetAt ¶
func (m *RespDeliver) GetAt() int64
func (*RespDeliver) GetCode ¶
func (m *RespDeliver) GetCode() int32
func (*RespDeliver) GetDesc ¶
func (m *RespDeliver) GetDesc() string
func (*RespDeliver) GetSID ¶
func (m *RespDeliver) GetSID() int64
func (*RespDeliver) Marshal ¶
func (m *RespDeliver) Marshal() (dAtA []byte, err error)
func (*RespDeliver) ProtoMessage ¶
func (*RespDeliver) ProtoMessage()
func (*RespDeliver) Reset ¶
func (m *RespDeliver) Reset()
func (*RespDeliver) Size ¶
func (m *RespDeliver) Size() (n int)
func (*RespDeliver) String ¶
func (this *RespDeliver) String() string
func (*RespDeliver) Unmarshal ¶
func (m *RespDeliver) Unmarshal(dAtA []byte) error
type RespLogin ¶
type RespLogin struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Desc string `protobuf:"bytes,2,opt,name=Desc,proto3" json:"Desc,omitempty"` }
func (*RespLogin) Descriptor ¶
func (*RespLogin) ProtoMessage ¶
func (*RespLogin) ProtoMessage()
type RespLogout ¶
type RespLogout struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Desc string `protobuf:"bytes,2,opt,name=Desc,proto3" json:"Desc,omitempty"` }
func (*RespLogout) Descriptor ¶
func (*RespLogout) Descriptor() ([]byte, []int)
func (*RespLogout) GetCode ¶
func (m *RespLogout) GetCode() int32
func (*RespLogout) GetDesc ¶
func (m *RespLogout) GetDesc() string
func (*RespLogout) Marshal ¶
func (m *RespLogout) Marshal() (dAtA []byte, err error)
func (*RespLogout) ProtoMessage ¶
func (*RespLogout) ProtoMessage()
func (*RespLogout) Reset ¶
func (m *RespLogout) Reset()
func (*RespLogout) Size ¶
func (m *RespLogout) Size() (n int)
func (*RespLogout) String ¶
func (this *RespLogout) String() string
func (*RespLogout) Unmarshal ¶
func (m *RespLogout) Unmarshal(dAtA []byte) error
type RespPing ¶
type RespPing struct { }
func (*RespPing) Descriptor ¶
func (*RespPing) ProtoMessage ¶
func (*RespPing) ProtoMessage()
type RespSubscribe ¶
type RespSubscribe struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Desc string `protobuf:"bytes,2,opt,name=Desc,proto3" json:"Desc,omitempty"` Histories []*Message `protobuf:"bytes,3,rep,name=histories" json:"histories,omitempty"` }
func (*RespSubscribe) Descriptor ¶
func (*RespSubscribe) Descriptor() ([]byte, []int)
func (*RespSubscribe) GetCode ¶
func (m *RespSubscribe) GetCode() int32
func (*RespSubscribe) GetDesc ¶
func (m *RespSubscribe) GetDesc() string
func (*RespSubscribe) GetHistories ¶
func (m *RespSubscribe) GetHistories() []*Message
func (*RespSubscribe) Marshal ¶
func (m *RespSubscribe) Marshal() (dAtA []byte, err error)
func (*RespSubscribe) ProtoMessage ¶
func (*RespSubscribe) ProtoMessage()
func (*RespSubscribe) Reset ¶
func (m *RespSubscribe) Reset()
func (*RespSubscribe) Size ¶
func (m *RespSubscribe) Size() (n int)
func (*RespSubscribe) String ¶
func (this *RespSubscribe) String() string
func (*RespSubscribe) Unmarshal ¶
func (m *RespSubscribe) Unmarshal(dAtA []byte) error
type RespUnsubscribe ¶
type RespUnsubscribe struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Desc string `protobuf:"bytes,2,opt,name=Desc,proto3" json:"Desc,omitempty"` }
func (*RespUnsubscribe) Descriptor ¶
func (*RespUnsubscribe) Descriptor() ([]byte, []int)
func (*RespUnsubscribe) GetCode ¶
func (m *RespUnsubscribe) GetCode() int32
func (*RespUnsubscribe) GetDesc ¶
func (m *RespUnsubscribe) GetDesc() string
func (*RespUnsubscribe) Marshal ¶
func (m *RespUnsubscribe) Marshal() (dAtA []byte, err error)
func (*RespUnsubscribe) ProtoMessage ¶
func (*RespUnsubscribe) ProtoMessage()
func (*RespUnsubscribe) Reset ¶
func (m *RespUnsubscribe) Reset()
func (*RespUnsubscribe) Size ¶
func (m *RespUnsubscribe) Size() (n int)
func (*RespUnsubscribe) String ¶
func (this *RespUnsubscribe) String() string
func (*RespUnsubscribe) Unmarshal ¶
func (m *RespUnsubscribe) Unmarshal(dAtA []byte) error
type Topic ¶
type Topic struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id,omitempty" bson:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"title,omitempty" bson:"title,omitempty"` Avartar string `protobuf:"bytes,3,opt,name=Avartar,proto3" json:"avartar,omitempty" bson:"avartar,omitempty"` UpdateAt int64 `protobuf:"varint,4,opt,name=UpdateAt,proto3" json:"update_at,omitempty" bson:"update_at,omitempty"` Group bool `protobuf:"varint,5,opt,name=Group,proto3" json:"group,omitempty" bson:"group,omitempty"` }
func (*Topic) Descriptor ¶
func (*Topic) GetAvartar ¶
func (*Topic) GetUpdateAt ¶
func (*Topic) ProtoMessage ¶
func (*Topic) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.