Documentation ¶
Index ¶
- func CreateUserHashRedis(id int64, user entities.User) error
- func GenerateUserId() int64
- func GetUserHashRedis(id int) (*entities.User, error)
- func GetUserIdByEmail(email string) (int64, error)
- func GetUserProfileByEmail(email string) (*entities.User, error)
- func LinkUserEmailWithId(email string, userId int64) error
- type AuthService
- func (s *AuthService) CreateUser(ctx context.Context, req *clh_auth.CreateUserRequest) (*clh_auth.CreateUserResponse, error)
- func (s *AuthService) Login(ctx context.Context, req *clh_auth.LoginRequest) (*clh_auth.LoginResponse, error)
- func (s *AuthService) ValidateToken(ctx context.Context, req *clh_auth.ValidateRequest) (*clh_auth.ValidateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUserId ¶
func GenerateUserId() int64
func GetUserIdByEmail ¶
func LinkUserEmailWithId ¶
Types ¶
type AuthService ¶
type AuthService struct {
clh_auth.UnimplementedAuthServiceServer
}
func (*AuthService) CreateUser ¶
func (s *AuthService) CreateUser(ctx context.Context, req *clh_auth.CreateUserRequest) (*clh_auth.CreateUserResponse, error)
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *clh_auth.LoginRequest) (*clh_auth.LoginResponse, error)
func (*AuthService) ValidateToken ¶
func (s *AuthService) ValidateToken(ctx context.Context, req *clh_auth.ValidateRequest) (*clh_auth.ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.