Documentation ¶
Index ¶
- Variables
- type Device
- type Login
- func (*Login) Descriptor() ([]byte, []int)deprecated
- func (x *Login) GetConnType() Login_ConnType
- func (x *Login) GetDevice() Device
- func (x *Login) GetDeviceName() string
- func (x *Login) GetDeviceToken() string
- func (x *Login) GetUsername() string
- func (x *Login) GetUuid() string
- func (*Login) ProtoMessage()
- func (x *Login) ProtoReflect() protoreflect.Message
- func (x *Login) Reset()
- func (x *Login) String() string
- type Login_ConnType
- func (Login_ConnType) Descriptor() protoreflect.EnumDescriptor
- func (x Login_ConnType) Enum() *Login_ConnType
- func (Login_ConnType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Login_ConnType) Number() protoreflect.EnumNumber
- func (x Login_ConnType) String() string
- func (Login_ConnType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Device_name = map[int32]string{ 0: "Android", 1: "IOS", 2: "Windows", 3: "Linux", 4: "MacOS", 5: "Web", } Device_value = map[string]int32{ "Android": 0, "IOS": 1, "Windows": 2, "Linux": 3, "MacOS": 4, "Web": 5, } )
Enum value maps for Device.
View Source
var ( Login_ConnType_name = map[int32]string{ 0: "Connect", 1: "Reconnect", } Login_ConnType_value = map[string]int32{ "Connect": 0, "Reconnect": 1, } )
Enum value maps for Login_ConnType.
View Source
var File_github_com_txchat_imparse_proto_auth_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device int32
func (Device) Descriptor ¶
func (Device) Descriptor() protoreflect.EnumDescriptor
func (Device) EnumDescriptor
deprecated
func (Device) Number ¶
func (x Device) Number() protoreflect.EnumNumber
func (Device) Type ¶
func (Device) Type() protoreflect.EnumType
type Login ¶
type Login struct { Device Device `protobuf:"varint,1,opt,name=device,proto3,enum=imparse.proto.Device" json:"device,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` DeviceToken string `protobuf:"bytes,3,opt,name=deviceToken,proto3" json:"deviceToken,omitempty"` ConnType Login_ConnType `protobuf:"varint,4,opt,name=connType,proto3,enum=imparse.proto.Login_ConnType" json:"connType,omitempty"` Uuid string `protobuf:"bytes,5,opt,name=uuid,proto3" json:"uuid,omitempty"` DeviceName string `protobuf:"bytes,6,opt,name=deviceName,proto3" json:"deviceName,omitempty"` // contains filtered or unexported fields }
func (*Login) Descriptor
deprecated
func (*Login) GetConnType ¶
func (x *Login) GetConnType() Login_ConnType
func (*Login) GetDeviceName ¶
func (*Login) GetDeviceToken ¶
func (*Login) GetUsername ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
func (*Login) ProtoReflect ¶
func (x *Login) ProtoReflect() protoreflect.Message
type Login_ConnType ¶
type Login_ConnType int32
const ( Login_Connect Login_ConnType = 0 Login_Reconnect Login_ConnType = 1 )
func (Login_ConnType) Descriptor ¶
func (Login_ConnType) Descriptor() protoreflect.EnumDescriptor
func (Login_ConnType) Enum ¶
func (x Login_ConnType) Enum() *Login_ConnType
func (Login_ConnType) EnumDescriptor
deprecated
func (Login_ConnType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Login_ConnType.Descriptor instead.
func (Login_ConnType) Number ¶
func (x Login_ConnType) Number() protoreflect.EnumNumber
func (Login_ConnType) String ¶
func (x Login_ConnType) String() string
func (Login_ConnType) Type ¶
func (Login_ConnType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.