auth

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
const (
	Device_Android Device = 0
	Device_IOS     Device = 1
	Device_Windows Device = 2
	Device_Linux   Device = 3
	Device_MacOS   Device = 4
	Device_Web     Device = 5
)

func (Device) Descriptor

func (Device) Descriptor() protoreflect.EnumDescriptor

func (Device) Enum

func (x Device) Enum() *Device

func (Device) EnumDescriptor deprecated

func (Device) EnumDescriptor() ([]byte, []int)

Deprecated: Use Device.Descriptor instead.

func (Device) Number

func (x Device) Number() protoreflect.EnumNumber

func (Device) String

func (x Device) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Login.ProtoReflect.Descriptor instead.

func (*Login) GetConnType

func (x *Login) GetConnType() Login_ConnType

func (*Login) GetDevice

func (x *Login) GetDevice() Device

func (*Login) GetDeviceName

func (x *Login) GetDeviceName() string

func (*Login) GetDeviceToken

func (x *Login) GetDeviceToken() string

func (*Login) GetUsername

func (x *Login) GetUsername() string

func (*Login) GetUuid

func (x *Login) GetUuid() string

func (*Login) ProtoMessage

func (*Login) ProtoMessage()

func (*Login) ProtoReflect

func (x *Login) ProtoReflect() protoreflect.Message

func (*Login) Reset

func (x *Login) Reset()

func (*Login) String

func (x *Login) String() string

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) 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 (Login_ConnType) String

func (x Login_ConnType) String() string

func (Login_ConnType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL