Documentation ¶
Index ¶
- func GetKeyFromUsername(username string) string
- func GetToken(username string) (string, error)
- type AuthServiceHandler
- func (handler *AuthServiceHandler) GetToken(ctx context.Context, req *authservice.GetNewTokenRequest) (*authservice.GetNewTokenReply, error)
- func (handler *AuthServiceHandler) NewUser(ctx context.Context, req *authservice.NewUserRequest) (*authservice.NewUserReply, error)
- func (handler *AuthServiceHandler) VerifyRedisClient()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyFromUsername ¶
Types ¶
type AuthServiceHandler ¶
type AuthServiceHandler struct { Logger *log.Logger RedisClient *redis.Client authservice.UnimplementedAuthServer }
func NewAuthServiceHandler ¶
func NewAuthServiceHandler(logger *log.Logger) *AuthServiceHandler
func (*AuthServiceHandler) GetToken ¶
func (handler *AuthServiceHandler) GetToken( ctx context.Context, req *authservice.GetNewTokenRequest, ) (*authservice.GetNewTokenReply, error)
func (*AuthServiceHandler) NewUser ¶
func (handler *AuthServiceHandler) NewUser( ctx context.Context, req *authservice.NewUserRequest, ) (*authservice.NewUserReply, error)
func (*AuthServiceHandler) VerifyRedisClient ¶
func (handler *AuthServiceHandler) VerifyRedisClient()
Click to show internal directories.
Click to hide internal directories.