Documentation ¶
Index ¶
- func NewClient(logger log.Logger, conf *config.Config) (v1.AuthServiceClient, error)
- func NewServer(logger log.Logger, jwtManager *jwt.Manager) v1.AuthServiceServer
- type Server
- func (s Server) GenerateToken(ctx context.Context, req *v1.GenerateTokenRequest) (*v1.GenerateTokenResponse, error)
- func (s Server) RefreshToken(ctx context.Context, req *v1.RefreshTokenRequest) (*v1.RefreshTokenResponse, error)
- func (s Server) ValidateToken(ctx context.Context, req *v1.ValidateTokenRequest) (*v1.ValidateTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { v1.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func (Server) GenerateToken ¶
func (s Server) GenerateToken(ctx context.Context, req *v1.GenerateTokenRequest) (*v1.GenerateTokenResponse, error)
func (Server) RefreshToken ¶
func (s Server) RefreshToken(ctx context.Context, req *v1.RefreshTokenRequest) (*v1.RefreshTokenResponse, error)
func (Server) ValidateToken ¶
func (s Server) ValidateToken(ctx context.Context, req *v1.ValidateTokenRequest) (*v1.ValidateTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.