Documentation ¶
Index ¶
- func NewRpc() *grpc.Server
- type Server
- func (s *Server) CheckSignature(req *refreshTokenProto.TokenRequest) error
- func (s *Server) DestroyRefreshToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*emptypb.Empty, error)
- func (s *Server) GetUserInfo(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.UserInfo, error)
- func (s *Server) RefreshToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessToken, error)
- func (s *Server) VerifyAccessToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessTokenInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
refreshTokenProto.UnimplementedRefreshTokenServer
}
func (*Server) CheckSignature ¶
func (s *Server) CheckSignature(req *refreshTokenProto.TokenRequest) error
func (*Server) DestroyRefreshToken ¶
func (s *Server) DestroyRefreshToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*emptypb.Empty, error)
func (*Server) GetUserInfo ¶ added in v1.17.27
func (s *Server) GetUserInfo(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.UserInfo, error)
func (*Server) RefreshToken ¶
func (s *Server) RefreshToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessToken, error)
func (*Server) VerifyAccessToken ¶
func (s *Server) VerifyAccessToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessTokenInfo, error)
Click to show internal directories.
Click to hide internal directories.