Documentation ¶
Index ¶
- type AuthHandler
- func (h *AuthHandler) RefreshUserToken(ctx context.Context, input *v1.RefreshUserTokenRequest) (*v1.RefreshUserTokenResponse, error)
- func (h *AuthHandler) UserSignIn(ctx context.Context, input *v1.UserSignInRequest) (*v1.UserSignInResponse, error)
- func (h *AuthHandler) UserSignOut(ctx context.Context, input *v1.UserSignOutRequest) (*v1.UserSignOutResponse, error)
- func (h *AuthHandler) UserSignUp(ctx context.Context, input *v1.UserSignUpRequest) (*v1.UserSignUpResponse, error)
- type CodeHandler
- func (h *CodeHandler) CreateVerifyUserEmailCode(ctx context.Context, input *v1.CreateVerifyUserEmailCodeRequest) (*v1.CreateVerifyUserEmailCodeResponse, error)
- func (h *CodeHandler) VerifyUserEmailCode(ctx context.Context, input *v1.VerifyUserEmailCodeRequest) (*v1.VerifyUserEmailCodeResponse, error)
- type Handler
- type UserHandler
- func (h *UserHandler) ForgotUserPassword(ctx context.Context, input *v1.ForgotUserPasswordRequest) (*v1.ForgotUserPasswordResponse, error)
- func (h *UserHandler) GetUserByCreds(ctx context.Context, input *v1.GetUserByCredsRequest) (*v1.GetUserByCredsResponse, error)
- func (h *UserHandler) GetUserById(ctx context.Context, input *v1.GetUserByIdRequest) (*v1.GetUserByIdResponse, error)
- func (h *UserHandler) UpdateUserAvatar(ctx context.Context, input *v1.UpdateUserAvatarRequest) (*v1.UpdateUserAvatarResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct { v1.UnimplementedUserAuthServiceServer // contains filtered or unexported fields }
User auth gRPC handler.
func NewAuthHandler ¶
func NewAuthHandler(service service.Auth) *AuthHandler
Creating a new user auth gRPC handler.
func (*AuthHandler) RefreshUserToken ¶
func (h *AuthHandler) RefreshUserToken(ctx context.Context, input *v1.RefreshUserTokenRequest) (*v1.RefreshUserTokenResponse, error)
User Refresh token gRPC handler.
func (*AuthHandler) UserSignIn ¶
func (h *AuthHandler) UserSignIn(ctx context.Context, input *v1.UserSignInRequest) (*v1.UserSignInResponse, error)
User Sign In gRPC handler.
func (*AuthHandler) UserSignOut ¶
func (h *AuthHandler) UserSignOut(ctx context.Context, input *v1.UserSignOutRequest) (*v1.UserSignOutResponse, error)
User Sign Out gRPC handler.
func (*AuthHandler) UserSignUp ¶
func (h *AuthHandler) UserSignUp(ctx context.Context, input *v1.UserSignUpRequest) (*v1.UserSignUpResponse, error)
User Sign Up gRPC handler.
type CodeHandler ¶
type CodeHandler struct { v1.UnimplementedUserCodeServiceServer // contains filtered or unexported fields }
User code gRPC handler.
func NewCodeHandler ¶
func NewCodeHandler(service service.Code) *CodeHandler
Creating a new user code gRPC handler.
func (*CodeHandler) CreateVerifyUserEmailCode ¶
func (h *CodeHandler) CreateVerifyUserEmailCode(ctx context.Context, input *v1.CreateVerifyUserEmailCodeRequest) (*v1.CreateVerifyUserEmailCodeResponse, error)
Creating a new user verification email code.
func (*CodeHandler) VerifyUserEmailCode ¶
func (h *CodeHandler) VerifyUserEmailCode(ctx context.Context, input *v1.VerifyUserEmailCodeRequest) (*v1.VerifyUserEmailCodeResponse, error)
Verifying user email code.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
gRPC handler structure.
func (*Handler) RegisterHandlers ¶
Registering gRPC handlers.
type UserHandler ¶
type UserHandler struct { v1.UnimplementedUserServiceServer // contains filtered or unexported fields }
User gRPC handler.
func NewUserHandler ¶
func NewUserHandler(service service.User) *UserHandler
Creating a new user gRPC handler.
func (*UserHandler) ForgotUserPassword ¶
func (h *UserHandler) ForgotUserPassword(ctx context.Context, input *v1.ForgotUserPasswordRequest) (*v1.ForgotUserPasswordResponse, error)
Forgot user password.
func (*UserHandler) GetUserByCreds ¶
func (h *UserHandler) GetUserByCreds(ctx context.Context, input *v1.GetUserByCredsRequest) (*v1.GetUserByCredsResponse, error)
Getting user by credentials.
func (*UserHandler) GetUserById ¶
func (h *UserHandler) GetUserById(ctx context.Context, input *v1.GetUserByIdRequest) (*v1.GetUserByIdResponse, error)
Getting user by id.
func (*UserHandler) UpdateUserAvatar ¶
func (h *UserHandler) UpdateUserAvatar(ctx context.Context, input *v1.UpdateUserAvatarRequest) (*v1.UpdateUserAvatarResponse, error)
Click to show internal directories.
Click to hide internal directories.