Documentation
¶
Index ¶
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetChatID() string
- func (m *Message) GetFrom() *User
- func (m *Message) GetText() string
- func (m *Message) GetTimeStamp() int64
- func (m *Message) GetTo() *User
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetNickName() string
- func (m *User) GetUserID() string
- func (m *User) GetUserName() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserList
- func (*UserList) Descriptor() ([]byte, []int)
- func (m *UserList) GetUsers() []*User
- func (*UserList) ProtoMessage()
- func (m *UserList) Reset()
- func (m *UserList) String() string
- func (m *UserList) XXX_DiscardUnknown()
- func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserList) XXX_Merge(src proto.Message)
- func (m *UserList) XXX_Size() int
- func (m *UserList) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // chatID - The globally unique identifier of the message, in a format similar to userid:msgid ChatID string `protobuf:"bytes,1,opt,name=chatID,proto3" json:"chatID,omitempty"` // from - Message user From *User `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // to - User receiving the message To *User `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` // text - Message text content Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // timeStamp - Time of sending a message TimeStamp int64 `protobuf:"varint,5,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message - message
func (*Message) Descriptor ¶
func (*Message) GetTimeStamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type User ¶
type User struct { // nickName - User's nickname NickName string `protobuf:"bytes,1,opt,name=nickName,proto3" json:"nickName,omitempty"` // userID - User's unique identifier UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` // userName - Username UserName string `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
User - chat user info
func (*User) Descriptor ¶
func (*User) GetNickName ¶
func (*User) GetUserName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserList ¶
type UserList struct { // users - user list Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UserList - user list
func (*UserList) Descriptor ¶
func (*UserList) ProtoMessage ¶
func (*UserList) ProtoMessage()
func (*UserList) XXX_DiscardUnknown ¶
func (m *UserList) XXX_DiscardUnknown()
func (*UserList) XXX_Marshal ¶
func (*UserList) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.