Documentation
¶
Index ¶
- Variables
- type CHAT_TYPES
- type Contact
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAuthor() *Contact
- func (x *Message) GetChatId() string
- func (x *Message) GetChatType() CHAT_TYPES
- func (x *Message) GetCreatedAt() int64
- func (x *Message) GetId() string
- func (x *Message) GetSig() string
- func (x *Message) GetText() string
- func (x *Message) GetType() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetAdmins() []*Contact
- func (x *Request) GetChatType() CHAT_TYPES
- func (x *Request) GetId() string
- func (x *Request) GetMembers() []*Contact
- func (x *Request) GetName() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CHAT_TYPES_name = map[int32]string{ 0: "Private", 1: "Group", } CHAT_TYPES_value = map[string]int32{ "Private": 0, "Group": 1, } )
Enum value maps for CHAT_TYPES.
View Source
var File_chat_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CHAT_TYPES ¶ added in v0.3.0
type CHAT_TYPES int32
const ( CHAT_TYPES_Private CHAT_TYPES = 0 CHAT_TYPES_Group CHAT_TYPES = 1 )
func (CHAT_TYPES) Descriptor ¶ added in v0.3.0
func (CHAT_TYPES) Descriptor() protoreflect.EnumDescriptor
func (CHAT_TYPES) Enum ¶ added in v0.3.0
func (x CHAT_TYPES) Enum() *CHAT_TYPES
func (CHAT_TYPES) EnumDescriptor
deprecated
added in
v0.3.0
func (CHAT_TYPES) EnumDescriptor() ([]byte, []int)
Deprecated: Use CHAT_TYPES.Descriptor instead.
func (CHAT_TYPES) Number ¶ added in v0.3.0
func (x CHAT_TYPES) Number() protoreflect.EnumNumber
func (CHAT_TYPES) String ¶ added in v0.3.0
func (x CHAT_TYPES) String() string
func (CHAT_TYPES) Type ¶ added in v0.3.0
func (CHAT_TYPES) Type() protoreflect.EnumType
type Contact ¶
type Contact struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Contact) Descriptor
deprecated
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
func (*Contact) ProtoReflect ¶
func (x *Contact) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct {
Author *Contact `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
CreatedAt int64 `protobuf:"varint,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Sig string `protobuf:"bytes,6,opt,name=sig,proto3" json:"sig,omitempty"`
ChatId string `protobuf:"bytes,7,opt,name=chatId,proto3" json:"chatId,omitempty"`
Text string `protobuf:"bytes,8,opt,name=text,proto3" json:"text,omitempty"`
ChatType CHAT_TYPES `protobuf:"varint,9,opt,name=chatType,proto3,enum=CHAT_TYPES" json:"chatType,omitempty"`
// contains filtered or unexported fields
}
func (*Message) Descriptor
deprecated
func (*Message) GetChatType ¶ added in v0.3.0
func (x *Message) GetChatType() CHAT_TYPES
func (*Message) GetCreatedAt ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Request ¶ added in v0.3.0
type Request struct {
ChatType CHAT_TYPES `protobuf:"varint,1,opt,name=chatType,proto3,enum=CHAT_TYPES" json:"chatType,omitempty"`
Id string `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
Members []*Contact `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
Admins []*Contact `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
added in
v0.3.0
func (*Request) GetChatType ¶ added in v0.3.0
func (x *Request) GetChatType() CHAT_TYPES
func (*Request) GetMembers ¶ added in v0.3.0
func (*Request) ProtoMessage ¶ added in v0.3.0
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v0.3.0
func (x *Request) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.