Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func VerifyPassword ¶
Types ¶
type AuthUserResponse ¶
type AuthUserResponse struct { ID string `json:"id" mapstructure:"id"` Token string `json:"token" mapstructure:"token"` }
func Login ¶
func Login( ctx context.Context, userClient pbUser.UserClient, jwtManager *usecase.JWTManager, req *pbGateway.LoginRequest, ) (*AuthUserResponse, error)
func RegisterUser ¶
func RegisterUser( ctx context.Context, userClient pbUser.UserClient, jwtManager *usecase.JWTManager, req *pbGateway.RegisterUserRequest, ) (*AuthUserResponse, error)
Click to show internal directories.
Click to hide internal directories.