userv1

package
v0.0.0-...-c662a9e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package userv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_user_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RequestSmsOtp",
			Handler:    _UserService_RequestSmsOtp_Handler,
		},
		{
			MethodName: "VerifySmsOtp",
			Handler:    _UserService_VerifySmsOtp_Handler,
		},
		{
			MethodName: "ConfirmEmail",
			Handler:    _UserService_ConfirmEmail_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _UserService_Register_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _UserService_SignIn_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _UserService_SignOut_Handler,
		},
		{
			MethodName: "RefreshToken",
			Handler:    _UserService_RefreshToken_Handler,
		},
		{
			MethodName: "ResetPassword",
			Handler:    _UserService_ResetPassword_Handler,
		},
		{
			MethodName: "GetMyPersonalInfo",
			Handler:    _UserService_GetMyPersonalInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/v1/user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type ConfirmEmailRequest

type ConfirmEmailRequest struct {
	ConfirmationCode string `protobuf:"bytes,1,opt,name=confirmation_code,json=confirmationCode,proto3" json:"confirmation_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfirmEmailRequest) Descriptor deprecated

func (*ConfirmEmailRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConfirmEmailRequest.ProtoReflect.Descriptor instead.

func (*ConfirmEmailRequest) GetConfirmationCode

func (x *ConfirmEmailRequest) GetConfirmationCode() string

func (*ConfirmEmailRequest) ProtoMessage

func (*ConfirmEmailRequest) ProtoMessage()

func (*ConfirmEmailRequest) ProtoReflect

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

func (*ConfirmEmailRequest) Reset

func (x *ConfirmEmailRequest) Reset()

func (*ConfirmEmailRequest) String

func (x *ConfirmEmailRequest) String() string

type ConfirmEmailResponse

type ConfirmEmailResponse struct {
	// contains filtered or unexported fields
}

func (*ConfirmEmailResponse) Descriptor deprecated

func (*ConfirmEmailResponse) Descriptor() ([]byte, []int)

Deprecated: Use ConfirmEmailResponse.ProtoReflect.Descriptor instead.

func (*ConfirmEmailResponse) ProtoMessage

func (*ConfirmEmailResponse) ProtoMessage()

func (*ConfirmEmailResponse) ProtoReflect

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

func (*ConfirmEmailResponse) Reset

func (x *ConfirmEmailResponse) Reset()

func (*ConfirmEmailResponse) String

func (x *ConfirmEmailResponse) String() string

type GetMyPersonalInfoRequest

type GetMyPersonalInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetMyPersonalInfoRequest) Descriptor deprecated

func (*GetMyPersonalInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMyPersonalInfoRequest.ProtoReflect.Descriptor instead.

func (*GetMyPersonalInfoRequest) ProtoMessage

func (*GetMyPersonalInfoRequest) ProtoMessage()

func (*GetMyPersonalInfoRequest) ProtoReflect

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

func (*GetMyPersonalInfoRequest) Reset

func (x *GetMyPersonalInfoRequest) Reset()

func (*GetMyPersonalInfoRequest) String

func (x *GetMyPersonalInfoRequest) String() string

type GetMyPersonalInfoResponse

type GetMyPersonalInfoResponse struct {
	PersonalInfo *PersonalInfo `protobuf:"bytes,1,opt,name=personal_info,json=personalInfo,proto3" json:"personal_info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMyPersonalInfoResponse) Descriptor deprecated

func (*GetMyPersonalInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMyPersonalInfoResponse.ProtoReflect.Descriptor instead.

func (*GetMyPersonalInfoResponse) GetPersonalInfo

func (x *GetMyPersonalInfoResponse) GetPersonalInfo() *PersonalInfo

func (*GetMyPersonalInfoResponse) ProtoMessage

func (*GetMyPersonalInfoResponse) ProtoMessage()

func (*GetMyPersonalInfoResponse) ProtoReflect

func (*GetMyPersonalInfoResponse) Reset

func (x *GetMyPersonalInfoResponse) Reset()

func (*GetMyPersonalInfoResponse) String

func (x *GetMyPersonalInfoResponse) String() string

type PersonalInfo

type PersonalInfo struct {

	// NOTE: this may not be real name.
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// format: E.164
	PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	Nickname    string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

func (*PersonalInfo) Descriptor deprecated

func (*PersonalInfo) Descriptor() ([]byte, []int)

Deprecated: Use PersonalInfo.ProtoReflect.Descriptor instead.

func (*PersonalInfo) GetEmail

func (x *PersonalInfo) GetEmail() string

func (*PersonalInfo) GetName

func (x *PersonalInfo) GetName() string

func (*PersonalInfo) GetNickname

func (x *PersonalInfo) GetNickname() string

func (*PersonalInfo) GetPhoneNumber

func (x *PersonalInfo) GetPhoneNumber() string

func (*PersonalInfo) ProtoMessage

func (*PersonalInfo) ProtoMessage()

func (*PersonalInfo) ProtoReflect

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

func (*PersonalInfo) Reset

func (x *PersonalInfo) Reset()

func (*PersonalInfo) String

func (x *PersonalInfo) String() string

type RefreshTokenRequest

type RefreshTokenRequest struct {

	// format: JWT
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenRequest) Descriptor deprecated

func (*RefreshTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshTokenRequest) GetRefreshToken

func (x *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) ProtoMessage

func (*RefreshTokenRequest) ProtoMessage()

func (*RefreshTokenRequest) ProtoReflect

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

func (*RefreshTokenRequest) Reset

func (x *RefreshTokenRequest) Reset()

func (*RefreshTokenRequest) String

func (x *RefreshTokenRequest) String() string

type RefreshTokenResponse

type RefreshTokenResponse struct {

	// format: JWT
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// format: JWT
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenResponse) Descriptor deprecated

func (*RefreshTokenResponse) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.

func (*RefreshTokenResponse) GetAccessToken

func (x *RefreshTokenResponse) GetAccessToken() string

func (*RefreshTokenResponse) GetRefreshToken

func (x *RefreshTokenResponse) GetRefreshToken() string

func (*RefreshTokenResponse) ProtoMessage

func (*RefreshTokenResponse) ProtoMessage()

func (*RefreshTokenResponse) ProtoReflect

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

func (*RefreshTokenResponse) Reset

func (x *RefreshTokenResponse) Reset()

func (*RefreshTokenResponse) String

func (x *RefreshTokenResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	VerificationToken string `protobuf:"bytes,1,opt,name=verification_token,json=verificationToken,proto3" json:"verification_token,omitempty"`
	// NOTE: this may not be real name.
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// if not exists, nickname set to name
	Nickname *string `protobuf:"bytes,5,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
	// 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) GetName

func (x *RegisterRequest) GetName() string

func (*RegisterRequest) GetNickname

func (x *RegisterRequest) GetNickname() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetVerificationToken

func (x *RegisterRequest) GetVerificationToken() 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 {
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

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 RequestSmsOtpRequest

type RequestSmsOtpRequest struct {

	// format: E.164
	PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestSmsOtpRequest) Descriptor deprecated

func (*RequestSmsOtpRequest) Descriptor() ([]byte, []int)

Deprecated: Use RequestSmsOtpRequest.ProtoReflect.Descriptor instead.

func (*RequestSmsOtpRequest) GetPhoneNumber

func (x *RequestSmsOtpRequest) GetPhoneNumber() string

func (*RequestSmsOtpRequest) ProtoMessage

func (*RequestSmsOtpRequest) ProtoMessage()

func (*RequestSmsOtpRequest) ProtoReflect

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

func (*RequestSmsOtpRequest) Reset

func (x *RequestSmsOtpRequest) Reset()

func (*RequestSmsOtpRequest) String

func (x *RequestSmsOtpRequest) String() string

type RequestSmsOtpResponse

type RequestSmsOtpResponse struct {

	// format: uuid v4
	VerificationToken string `protobuf:"bytes,1,opt,name=verification_token,json=verificationToken,proto3" json:"verification_token,omitempty"`
	// unit: millisecond
	// e.g. `180000` means 3 minutes
	ExpiresInMs int32 `protobuf:"varint,2,opt,name=expires_in_ms,json=expiresInMs,proto3" json:"expires_in_ms,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestSmsOtpResponse) Descriptor deprecated

func (*RequestSmsOtpResponse) Descriptor() ([]byte, []int)

Deprecated: Use RequestSmsOtpResponse.ProtoReflect.Descriptor instead.

func (*RequestSmsOtpResponse) GetExpiresInMs

func (x *RequestSmsOtpResponse) GetExpiresInMs() int32

func (*RequestSmsOtpResponse) GetVerificationToken

func (x *RequestSmsOtpResponse) GetVerificationToken() string

func (*RequestSmsOtpResponse) ProtoMessage

func (*RequestSmsOtpResponse) ProtoMessage()

func (*RequestSmsOtpResponse) ProtoReflect

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

func (*RequestSmsOtpResponse) Reset

func (x *RequestSmsOtpResponse) Reset()

func (*RequestSmsOtpResponse) String

func (x *RequestSmsOtpResponse) String() string

type ResetPasswordRequest

type ResetPasswordRequest struct {
	VerificationToken string `protobuf:"bytes,1,opt,name=verification_token,json=verificationToken,proto3" json:"verification_token,omitempty"`
	NewPassword       string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetPasswordRequest) Descriptor deprecated

func (*ResetPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetNewPassword

func (x *ResetPasswordRequest) GetNewPassword() string

func (*ResetPasswordRequest) GetVerificationToken

func (x *ResetPasswordRequest) GetVerificationToken() string

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

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

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

type ResetPasswordResponse

type ResetPasswordResponse struct {
	// contains filtered or unexported fields
}

func (*ResetPasswordResponse) Descriptor deprecated

func (*ResetPasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.

func (*ResetPasswordResponse) ProtoMessage

func (*ResetPasswordResponse) ProtoMessage()

func (*ResetPasswordResponse) ProtoReflect

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

func (*ResetPasswordResponse) Reset

func (x *ResetPasswordResponse) Reset()

func (*ResetPasswordResponse) String

func (x *ResetPasswordResponse) String() string

type SignInRequest

type SignInRequest struct {

	// email or (E.167 formatted) phone number
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInRequest) Descriptor deprecated

func (*SignInRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetId

func (x *SignInRequest) GetId() string

func (*SignInRequest) GetPassword

func (x *SignInRequest) GetPassword() 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 {

	// format: JWT
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// format: JWT
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInResponse) Descriptor deprecated

func (*SignInResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.

func (*SignInResponse) GetAccessToken

func (x *SignInResponse) GetAccessToken() string

func (*SignInResponse) GetRefreshToken

func (x *SignInResponse) GetRefreshToken() 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 SignOutRequest

type SignOutRequest struct {

	// format: JWT
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignOutRequest) Descriptor deprecated

func (*SignOutRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.

func (*SignOutRequest) GetRefreshToken

func (x *SignOutRequest) GetRefreshToken() string

func (*SignOutRequest) ProtoMessage

func (*SignOutRequest) ProtoMessage()

func (*SignOutRequest) ProtoReflect

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

func (*SignOutRequest) Reset

func (x *SignOutRequest) Reset()

func (*SignOutRequest) String

func (x *SignOutRequest) String() string

type SignOutResponse

type SignOutResponse struct {
	// contains filtered or unexported fields
}

func (*SignOutResponse) Descriptor deprecated

func (*SignOutResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignOutResponse.ProtoReflect.Descriptor instead.

func (*SignOutResponse) ProtoMessage

func (*SignOutResponse) ProtoMessage()

func (*SignOutResponse) ProtoReflect

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

func (*SignOutResponse) Reset

func (x *SignOutResponse) Reset()

func (*SignOutResponse) String

func (x *SignOutResponse) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) ConfirmEmail

func (UnimplementedUserServiceServer) GetMyPersonalInfo

func (UnimplementedUserServiceServer) RefreshToken

func (UnimplementedUserServiceServer) Register

func (UnimplementedUserServiceServer) RequestSmsOtp

func (UnimplementedUserServiceServer) ResetPassword

func (UnimplementedUserServiceServer) SignIn

func (UnimplementedUserServiceServer) SignOut

func (UnimplementedUserServiceServer) VerifySmsOtp

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UserServiceClient

type UserServiceClient interface {
	// SMS OTP 요청
	RequestSmsOtp(ctx context.Context, in *RequestSmsOtpRequest, opts ...grpc.CallOption) (*RequestSmsOtpResponse, error)
	// SMS OTP 검증
	VerifySmsOtp(ctx context.Context, in *VerifySmsOtpRequest, opts ...grpc.CallOption) (*VerifySmsOtpResponse, error)
	// 이메일 검증
	ConfirmEmail(ctx context.Context, in *ConfirmEmailRequest, opts ...grpc.CallOption) (*ConfirmEmailResponse, error)
	// 회원가입
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	// 로그인
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
	// 로그아웃
	SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*SignOutResponse, error)
	// 토큰 갱신
	RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error)
	// 비밀번호 재설정
	ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordResponse, error)
	// 내 정보 조회
	GetMyPersonalInfo(ctx context.Context, in *GetMyPersonalInfoRequest, opts ...grpc.CallOption) (*GetMyPersonalInfoResponse, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceServer

type UserServiceServer interface {
	// SMS OTP 요청
	RequestSmsOtp(context.Context, *RequestSmsOtpRequest) (*RequestSmsOtpResponse, error)
	// SMS OTP 검증
	VerifySmsOtp(context.Context, *VerifySmsOtpRequest) (*VerifySmsOtpResponse, error)
	// 이메일 검증
	ConfirmEmail(context.Context, *ConfirmEmailRequest) (*ConfirmEmailResponse, error)
	// 회원가입
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// 로그인
	SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
	// 로그아웃
	SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error)
	// 토큰 갱신
	RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
	// 비밀번호 재설정
	ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
	// 내 정보 조회
	GetMyPersonalInfo(context.Context, *GetMyPersonalInfoRequest) (*GetMyPersonalInfoResponse, error)
}

UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility

type VerifySmsOtpRequest

type VerifySmsOtpRequest struct {
	VerificationToken string `protobuf:"bytes,1,opt,name=verification_token,json=verificationToken,proto3" json:"verification_token,omitempty"`
	SmsOtpCode        string `protobuf:"bytes,2,opt,name=sms_otp_code,json=smsOtpCode,proto3" json:"sms_otp_code,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifySmsOtpRequest) Descriptor deprecated

func (*VerifySmsOtpRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifySmsOtpRequest.ProtoReflect.Descriptor instead.

func (*VerifySmsOtpRequest) GetSmsOtpCode

func (x *VerifySmsOtpRequest) GetSmsOtpCode() string

func (*VerifySmsOtpRequest) GetVerificationToken

func (x *VerifySmsOtpRequest) GetVerificationToken() string

func (*VerifySmsOtpRequest) ProtoMessage

func (*VerifySmsOtpRequest) ProtoMessage()

func (*VerifySmsOtpRequest) ProtoReflect

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

func (*VerifySmsOtpRequest) Reset

func (x *VerifySmsOtpRequest) Reset()

func (*VerifySmsOtpRequest) String

func (x *VerifySmsOtpRequest) String() string

type VerifySmsOtpResponse

type VerifySmsOtpResponse struct {
	// contains filtered or unexported fields
}

func (*VerifySmsOtpResponse) Descriptor deprecated

func (*VerifySmsOtpResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifySmsOtpResponse.ProtoReflect.Descriptor instead.

func (*VerifySmsOtpResponse) ProtoMessage

func (*VerifySmsOtpResponse) ProtoMessage()

func (*VerifySmsOtpResponse) ProtoReflect

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

func (*VerifySmsOtpResponse) Reset

func (x *VerifySmsOtpResponse) Reset()

func (*VerifySmsOtpResponse) String

func (x *VerifySmsOtpResponse) String() string

Jump to

Keyboard shortcuts

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