Documentation
¶
Index ¶
- type Hasher
- type HasherService
- func (s *HasherService) DecodeJWT(ctx context.Context, req *pb.DecodeJWTReq) (*model.User, error)
- func (s *HasherService) GenerateJWTPair(ctx context.Context, req *pb.GenerateJWTPairReq) (*pb.GenerateJWTPairRes, error)
- func (s *HasherService) Hash(baseString string) (string, error)
- func (s *HasherService) NewJWT(ctx context.Context, req *pb.NewJWTReq) (string, error)
- func (s *HasherService) NewUID(userLogin string) (string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
type Hasher interface { Hash(baseString string) (string, error) NewUID(userLogin string) (string, error) NewJWT(ctx context.Context, req *pb.NewJWTReq) (string, error) DecodeJWT(ctx context.Context, req *pb.DecodeJWTReq) (*model.User, error) GenerateJWTPair(ctx context.Context, req *pb.GenerateJWTPairReq) (*pb.GenerateJWTPairRes, error) }
type HasherService ¶
type HasherService struct{}
func NewHasherService ¶
func NewHasherService() *HasherService
func (*HasherService) DecodeJWT ¶
func (s *HasherService) DecodeJWT(ctx context.Context, req *pb.DecodeJWTReq) (*model.User, error)
func (*HasherService) GenerateJWTPair ¶
func (s *HasherService) GenerateJWTPair(ctx context.Context, req *pb.GenerateJWTPairReq) (*pb.GenerateJWTPairRes, error)
Click to show internal directories.
Click to hide internal directories.