handler

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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmEmailHandlerFunc

type ConfirmEmailHandlerFunc func(ctx context.Context, req *userv1.ConfirmEmailRequest) (*userv1.ConfirmEmailResponse, error)

func ConfirmEmail

func ConfirmEmail(db *sql.DB) ConfirmEmailHandlerFunc

type GetMyPersonalInfoHandlerFunc

type GetMyPersonalInfoHandlerFunc func(ctx context.Context, req *userv1.GetMyPersonalInfoRequest) (*userv1.GetMyPersonalInfoResponse, error)

func GetMyPersonalInfo

func GetMyPersonalInfo(userTokenService service.UserTokenService) GetMyPersonalInfoHandlerFunc

type IDType

type IDType int
const (
	IDTypeEmail IDType = iota + 1
	IDTypePhoneNumber
)

type RefreshTokenHandlerFunc

type RefreshTokenHandlerFunc func(ctx context.Context, req *userv1.RefreshTokenRequest) (*userv1.RefreshTokenResponse, error)

func RefreshToken

func RefreshToken(userTokenService service.UserTokenService) RefreshTokenHandlerFunc

type RegisterHandlerFunc

type RegisterHandlerFunc func(ctx context.Context, req *userv1.RegisterRequest) (*userv1.RegisterResponse, error)

func Register

func Register(clock clockwork.Clock, db *sql.DB, hasher crypto.Hasher) RegisterHandlerFunc

type RequestSmsOtpHandlerFunc

type RequestSmsOtpHandlerFunc func(ctx context.Context, req *userv1.RequestSmsOtpRequest) (*userv1.RequestSmsOtpResponse, error)

func RequestSmsOtp

func RequestSmsOtp(clock clockwork.Clock, db *sql.DB, idGenerator, otpGenerator generator.Generator, smsv1ServiceCli smsv1.SmsServiceClient) RequestSmsOtpHandlerFunc

type ResetPasswordHandlerFunc

type ResetPasswordHandlerFunc func(ctx context.Context, req *userv1.ResetPasswordRequest) (*userv1.ResetPasswordResponse, error)

func ResetPassword

func ResetPassword(clock clockwork.Clock, db *sql.DB, hasher crypto.Hasher, userTokenService service.UserTokenService) ResetPasswordHandlerFunc

type SignInHandlerFunc

type SignInHandlerFunc func(ctx context.Context, req *userv1.SignInRequest) (*userv1.SignInResponse, error)

func SignIn

func SignIn(hasher crypto.Hasher, db *sql.DB, userTokenService service.UserTokenService) SignInHandlerFunc

type SignOutHandlerFunc

type SignOutHandlerFunc func(ctx context.Context, req *userv1.SignOutRequest) (*userv1.SignOutResponse, error)

func SignOut

func SignOut(userTokenService service.UserTokenService) SignOutHandlerFunc

type VerifySmsOtpHandlerFunc

type VerifySmsOtpHandlerFunc func(ctx context.Context, req *userv1.VerifySmsOtpRequest) (*userv1.VerifySmsOtpResponse, error)

func VerifySmsOtp

func VerifySmsOtp(clock clockwork.Clock, db *sql.DB) VerifySmsOtpHandlerFunc

Jump to

Keyboard shortcuts

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