Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthSercieHTTPServer(s *http.Server, srv AuthSercieHTTPServer)
- func RegisterAuthSercieServer(s grpc.ServiceRegistrar, srv AuthSercieServer)
- type AuthSercieClient
- type AuthSercieHTTPClient
- type AuthSercieHTTPClientImpl
- type AuthSercieHTTPServer
- type AuthSercieServer
- type AuthServiceErrorReason
- func (AuthServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x AuthServiceErrorReason) Enum() *AuthServiceErrorReason
- func (AuthServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthServiceErrorReason) Number() protoreflect.EnumNumber
- func (x AuthServiceErrorReason) String() string
- func (AuthServiceErrorReason) Type() protoreflect.EnumType
- type EmailVerify
- func (*EmailVerify) Descriptor() ([]byte, []int)deprecated
- func (x *EmailVerify) GetEmail() string
- func (x *EmailVerify) GetExpiredAt() *timestamppb.Timestamp
- func (x *EmailVerify) GetId() int64
- func (x *EmailVerify) GetIsUsed() bool
- func (x *EmailVerify) GetSecretCode() string
- func (x *EmailVerify) GetUserId() string
- func (*EmailVerify) ProtoMessage()
- func (x *EmailVerify) ProtoReflect() protoreflect.Message
- func (x *EmailVerify) Reset()
- func (x *EmailVerify) String() string
- type SendEmailRequest
- func (*SendEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendEmailRequest) GetEmail() string
- func (x *SendEmailRequest) GetUserId() string
- func (*SendEmailRequest) ProtoMessage()
- func (x *SendEmailRequest) ProtoReflect() protoreflect.Message
- func (x *SendEmailRequest) Reset()
- func (x *SendEmailRequest) String() string
- type UnimplementedAuthSercieServer
- type UnsafeAuthSercieServer
- type VerifyEmailRequest
- func (*VerifyEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyEmailRequest) GetId() int64
- func (x *VerifyEmailRequest) GetSecretCode() string
- func (*VerifyEmailRequest) ProtoMessage()
- func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyEmailRequest) Reset()
- func (x *VerifyEmailRequest) String() string
- type VerifyEmailResponse
- func (*VerifyEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyEmailResponse) GetIsVerified() bool
- func (*VerifyEmailResponse) ProtoMessage()
- func (x *VerifyEmailResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyEmailResponse) Reset()
- func (x *VerifyEmailResponse) String() string
Constants ¶
const (
AuthSercie_VerifyEmail_FullMethodName = "/v1.AuthSercie/VerifyEmail"
)
const OperationAuthSercieVerifyEmail = "/v1.AuthSercie/VerifyEmail"
Variables ¶
var ( AuthServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "EXPIRED_OR_DOESNT_EXISTS", } AuthServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "EXPIRED_OR_DOESNT_EXISTS": 1, } )
Enum value maps for AuthServiceErrorReason.
var AuthSercie_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.AuthSercie", HandlerType: (*AuthSercieServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "VerifyEmail", Handler: _AuthSercie_VerifyEmail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/v1/auth.proto", }
AuthSercie_ServiceDesc is the grpc.ServiceDesc for AuthSercie service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_v1_auth_error_proto protoreflect.FileDescriptor
var File_auth_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthSercieHTTPServer ¶
func RegisterAuthSercieHTTPServer(s *http.Server, srv AuthSercieHTTPServer)
func RegisterAuthSercieServer ¶
func RegisterAuthSercieServer(s grpc.ServiceRegistrar, srv AuthSercieServer)
Types ¶
type AuthSercieClient ¶
type AuthSercieClient interface {
VerifyEmail(ctx context.Context, in *VerifyEmailRequest, opts ...grpc.CallOption) (*VerifyEmailResponse, error)
}
AuthSercieClient is the client API for AuthSercie service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthSercieClient ¶
func NewAuthSercieClient(cc grpc.ClientConnInterface) AuthSercieClient
type AuthSercieHTTPClient ¶
type AuthSercieHTTPClient interface {
VerifyEmail(ctx context.Context, req *VerifyEmailRequest, opts ...http.CallOption) (rsp *VerifyEmailResponse, err error)
}
func NewAuthSercieHTTPClient ¶
func NewAuthSercieHTTPClient(client *http.Client) AuthSercieHTTPClient
type AuthSercieHTTPClientImpl ¶
type AuthSercieHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthSercieHTTPClientImpl) VerifyEmail ¶
func (c *AuthSercieHTTPClientImpl) VerifyEmail(ctx context.Context, in *VerifyEmailRequest, opts ...http.CallOption) (*VerifyEmailResponse, error)
type AuthSercieHTTPServer ¶
type AuthSercieHTTPServer interface {
VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error)
}
type AuthSercieServer ¶
type AuthSercieServer interface { VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error) // contains filtered or unexported methods }
AuthSercieServer is the server API for AuthSercie service. All implementations must embed UnimplementedAuthSercieServer for forward compatibility
type AuthServiceErrorReason ¶
type AuthServiceErrorReason int32
const ( AuthServiceErrorReason_UNKNOWN_ERROR AuthServiceErrorReason = 0 AuthServiceErrorReason_EXPIRED_OR_DOESNT_EXISTS AuthServiceErrorReason = 1 )
func (AuthServiceErrorReason) Descriptor ¶
func (AuthServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (AuthServiceErrorReason) Enum ¶
func (x AuthServiceErrorReason) Enum() *AuthServiceErrorReason
func (AuthServiceErrorReason) EnumDescriptor
deprecated
func (AuthServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthServiceErrorReason.Descriptor instead.
func (AuthServiceErrorReason) Number ¶
func (x AuthServiceErrorReason) Number() protoreflect.EnumNumber
func (AuthServiceErrorReason) String ¶
func (x AuthServiceErrorReason) String() string
func (AuthServiceErrorReason) Type ¶
func (AuthServiceErrorReason) Type() protoreflect.EnumType
type EmailVerify ¶
type EmailVerify struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` SecretCode string `protobuf:"bytes,4,opt,name=secret_code,json=secretCode,proto3" json:"secret_code,omitempty"` IsUsed bool `protobuf:"varint,5,opt,name=is_used,json=isUsed,proto3" json:"is_used,omitempty"` ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"` // contains filtered or unexported fields }
func (*EmailVerify) Descriptor
deprecated
func (*EmailVerify) Descriptor() ([]byte, []int)
Deprecated: Use EmailVerify.ProtoReflect.Descriptor instead.
func (*EmailVerify) GetEmail ¶
func (x *EmailVerify) GetEmail() string
func (*EmailVerify) GetExpiredAt ¶
func (x *EmailVerify) GetExpiredAt() *timestamppb.Timestamp
func (*EmailVerify) GetId ¶
func (x *EmailVerify) GetId() int64
func (*EmailVerify) GetIsUsed ¶
func (x *EmailVerify) GetIsUsed() bool
func (*EmailVerify) GetSecretCode ¶
func (x *EmailVerify) GetSecretCode() string
func (*EmailVerify) GetUserId ¶
func (x *EmailVerify) GetUserId() string
func (*EmailVerify) ProtoMessage ¶
func (*EmailVerify) ProtoMessage()
func (*EmailVerify) ProtoReflect ¶
func (x *EmailVerify) ProtoReflect() protoreflect.Message
func (*EmailVerify) Reset ¶
func (x *EmailVerify) Reset()
func (*EmailVerify) String ¶
func (x *EmailVerify) String() string
type SendEmailRequest ¶
type SendEmailRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*SendEmailRequest) Descriptor
deprecated
func (*SendEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendEmailRequest.ProtoReflect.Descriptor instead.
func (*SendEmailRequest) GetEmail ¶
func (x *SendEmailRequest) GetEmail() string
func (*SendEmailRequest) GetUserId ¶
func (x *SendEmailRequest) GetUserId() string
func (*SendEmailRequest) ProtoMessage ¶
func (*SendEmailRequest) ProtoMessage()
func (*SendEmailRequest) ProtoReflect ¶
func (x *SendEmailRequest) ProtoReflect() protoreflect.Message
func (*SendEmailRequest) Reset ¶
func (x *SendEmailRequest) Reset()
func (*SendEmailRequest) String ¶
func (x *SendEmailRequest) String() string
type UnimplementedAuthSercieServer ¶
type UnimplementedAuthSercieServer struct { }
UnimplementedAuthSercieServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthSercieServer) VerifyEmail ¶
func (UnimplementedAuthSercieServer) VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error)
type UnsafeAuthSercieServer ¶
type UnsafeAuthSercieServer interface {
// contains filtered or unexported methods
}
UnsafeAuthSercieServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthSercieServer will result in compilation errors.
type VerifyEmailRequest ¶
type VerifyEmailRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` SecretCode string `protobuf:"bytes,2,opt,name=secret_code,json=secretCode,proto3" json:"secret_code,omitempty"` // contains filtered or unexported fields }
func (*VerifyEmailRequest) Descriptor
deprecated
func (*VerifyEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.
func (*VerifyEmailRequest) GetId ¶
func (x *VerifyEmailRequest) GetId() int64
func (*VerifyEmailRequest) GetSecretCode ¶
func (x *VerifyEmailRequest) GetSecretCode() string
func (*VerifyEmailRequest) ProtoMessage ¶
func (*VerifyEmailRequest) ProtoMessage()
func (*VerifyEmailRequest) ProtoReflect ¶
func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message
func (*VerifyEmailRequest) Reset ¶
func (x *VerifyEmailRequest) Reset()
func (*VerifyEmailRequest) String ¶
func (x *VerifyEmailRequest) String() string
type VerifyEmailResponse ¶
type VerifyEmailResponse struct { IsVerified bool `protobuf:"varint,1,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"` // contains filtered or unexported fields }
func (*VerifyEmailResponse) Descriptor
deprecated
func (*VerifyEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.
func (*VerifyEmailResponse) GetIsVerified ¶
func (x *VerifyEmailResponse) GetIsVerified() bool
func (*VerifyEmailResponse) ProtoMessage ¶
func (*VerifyEmailResponse) ProtoMessage()
func (*VerifyEmailResponse) ProtoReflect ¶
func (x *VerifyEmailResponse) ProtoReflect() protoreflect.Message
func (*VerifyEmailResponse) Reset ¶
func (x *VerifyEmailResponse) Reset()
func (*VerifyEmailResponse) String ¶
func (x *VerifyEmailResponse) String() string