Documentation
¶
Index ¶
- Variables
- type RegisterRequest
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetStatus() RegisterResponse_Status
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type RegisterResponse_Status
- func (RegisterResponse_Status) Descriptor() protoreflect.EnumDescriptor
- func (x RegisterResponse_Status) Enum() *RegisterResponse_Status
- func (RegisterResponse_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegisterResponse_Status) Number() protoreflect.EnumNumber
- func (x RegisterResponse_Status) String() string
- func (RegisterResponse_Status) Type() protoreflect.EnumType
- type SigninRequest
- func (*SigninRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SigninRequest) GetCode() string
- func (x *SigninRequest) GetEmail() string
- func (*SigninRequest) ProtoMessage()
- func (x *SigninRequest) ProtoReflect() protoreflect.Message
- func (x *SigninRequest) Reset()
- func (x *SigninRequest) String() string
- type SigninResponse
- func (*SigninResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SigninResponse) GetStatus() SigninResponse_Status
- func (x *SigninResponse) GetToken() string
- func (*SigninResponse) ProtoMessage()
- func (x *SigninResponse) ProtoReflect() protoreflect.Message
- func (x *SigninResponse) Reset()
- func (x *SigninResponse) String() string
- type SigninResponse_Status
- func (SigninResponse_Status) Descriptor() protoreflect.EnumDescriptor
- func (x SigninResponse_Status) Enum() *SigninResponse_Status
- func (SigninResponse_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x SigninResponse_Status) Number() protoreflect.EnumNumber
- func (x SigninResponse_Status) String() string
- func (SigninResponse_Status) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegisterResponse_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_SUCCESS", 2: "STATUS_ALREADY_EXISTS", } RegisterResponse_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_SUCCESS": 1, "STATUS_ALREADY_EXISTS": 2, } )
Enum value maps for RegisterResponse_Status.
View Source
var ( SigninResponse_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_SUCCESS", 2: "STATUS_FAILED", 3: "STATUS_ACCOUNT_LOCKED", } SigninResponse_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_SUCCESS": 1, "STATUS_FAILED": 2, "STATUS_ACCOUNT_LOCKED": 3, } )
Enum value maps for SigninResponse_Status.
View Source
var File_authentication_v1_authentication_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Email // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Status RegisterResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=authentication.v1.RegisterResponse_Status" json:"status,omitempty"` // Register status // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetStatus ¶
func (x *RegisterResponse) GetStatus() RegisterResponse_Status
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type RegisterResponse_Status ¶
type RegisterResponse_Status int32
const ( RegisterResponse_STATUS_UNSPECIFIED RegisterResponse_Status = 0 RegisterResponse_STATUS_SUCCESS RegisterResponse_Status = 1 // Success RegisterResponse_STATUS_ALREADY_EXISTS RegisterResponse_Status = 2 // Email address already registered )
func (RegisterResponse_Status) Descriptor ¶
func (RegisterResponse_Status) Descriptor() protoreflect.EnumDescriptor
func (RegisterResponse_Status) Enum ¶
func (x RegisterResponse_Status) Enum() *RegisterResponse_Status
func (RegisterResponse_Status) EnumDescriptor
deprecated
func (RegisterResponse_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegisterResponse_Status.Descriptor instead.
func (RegisterResponse_Status) Number ¶
func (x RegisterResponse_Status) Number() protoreflect.EnumNumber
func (RegisterResponse_Status) String ¶
func (x RegisterResponse_Status) String() string
func (RegisterResponse_Status) Type ¶
func (RegisterResponse_Status) Type() protoreflect.EnumType
type SigninRequest ¶
type SigninRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // Email Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // Authentication code // contains filtered or unexported fields }
func (*SigninRequest) Descriptor
deprecated
func (*SigninRequest) Descriptor() ([]byte, []int)
Deprecated: Use SigninRequest.ProtoReflect.Descriptor instead.
func (*SigninRequest) GetCode ¶
func (x *SigninRequest) GetCode() string
func (*SigninRequest) GetEmail ¶
func (x *SigninRequest) GetEmail() string
func (*SigninRequest) ProtoMessage ¶
func (*SigninRequest) ProtoMessage()
func (*SigninRequest) ProtoReflect ¶
func (x *SigninRequest) ProtoReflect() protoreflect.Message
func (*SigninRequest) Reset ¶
func (x *SigninRequest) Reset()
func (*SigninRequest) String ¶
func (x *SigninRequest) String() string
type SigninResponse ¶
type SigninResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // JWT Token Status SigninResponse_Status `protobuf:"varint,2,opt,name=status,proto3,enum=authentication.v1.SigninResponse_Status" json:"status,omitempty"` // Sign-in status // contains filtered or unexported fields }
func (*SigninResponse) Descriptor
deprecated
func (*SigninResponse) Descriptor() ([]byte, []int)
Deprecated: Use SigninResponse.ProtoReflect.Descriptor instead.
func (*SigninResponse) GetStatus ¶
func (x *SigninResponse) GetStatus() SigninResponse_Status
func (*SigninResponse) GetToken ¶
func (x *SigninResponse) GetToken() string
func (*SigninResponse) ProtoMessage ¶
func (*SigninResponse) ProtoMessage()
func (*SigninResponse) ProtoReflect ¶
func (x *SigninResponse) ProtoReflect() protoreflect.Message
func (*SigninResponse) Reset ¶
func (x *SigninResponse) Reset()
func (*SigninResponse) String ¶
func (x *SigninResponse) String() string
type SigninResponse_Status ¶
type SigninResponse_Status int32
const ( SigninResponse_STATUS_UNSPECIFIED SigninResponse_Status = 0 SigninResponse_STATUS_SUCCESS SigninResponse_Status = 1 // Success SigninResponse_STATUS_FAILED SigninResponse_Status = 2 // Authentication failed SigninResponse_STATUS_ACCOUNT_LOCKED SigninResponse_Status = 3 // Account locked due to fraud detection )
func (SigninResponse_Status) Descriptor ¶
func (SigninResponse_Status) Descriptor() protoreflect.EnumDescriptor
func (SigninResponse_Status) Enum ¶
func (x SigninResponse_Status) Enum() *SigninResponse_Status
func (SigninResponse_Status) EnumDescriptor
deprecated
func (SigninResponse_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use SigninResponse_Status.Descriptor instead.
func (SigninResponse_Status) Number ¶
func (x SigninResponse_Status) Number() protoreflect.EnumNumber
func (SigninResponse_Status) String ¶
func (x SigninResponse_Status) String() string
func (SigninResponse_Status) Type ¶
func (SigninResponse_Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.