v1

package
v0.0.0-...-51342a6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthSercie_VerifyEmail_FullMethodName = "/v1.AuthSercie/VerifyEmail"
)
View Source
const OperationAuthSercieVerifyEmail = "/v1.AuthSercie/VerifyEmail"

Variables

View Source
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.

View Source
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)

View Source
var File_auth_v1_auth_error_proto protoreflect.FileDescriptor
View Source
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

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) Enum

func (AuthServiceErrorReason) EnumDescriptor deprecated

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

Deprecated: Use AuthServiceErrorReason.Descriptor instead.

func (AuthServiceErrorReason) Number

func (AuthServiceErrorReason) String

func (x AuthServiceErrorReason) String() string

func (AuthServiceErrorReason) Type

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

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

Jump to

Keyboard shortcuts

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