Documentation ¶
Index ¶
- func NewRpc() *grpc.Server
- func SetAuthInfo(ctx context.Context, info *AuthInfo) context.Context
- func SetAuthInfoWithContext(ctx context.Context) (context.Context, error)
- func StreamAuth() grpc.StreamServerInterceptor
- func UnaryAuth() grpc.UnaryServerInterceptor
- type AuthInfo
- type ModifiedServerStream
- type Server
- func (s *Server) DestroyToken(ctx context.Context, req *appProto.RefreshTokenRequest) (*emptypb.Empty, error)
- func (s *Server) GetTokenStatus(ctx context.Context, req *appProto.TokenIDRequest) (*appProto.TokenStatus, error)
- func (s *Server) GetUserInfo(_ context.Context, req *appProto.UserIDRequest) (*appProto.UserInfo, error)
- func (s *Server) RefreshToken(ctx context.Context, req *appProto.RefreshTokenRequest) (*appProto.AccessToken, error)
- func (s *Server) WatchTokenOperation(_ *emptypb.Empty, srv appProto.App_WatchTokenOperationServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAuthInfo ¶ added in v1.19.11
func SetAuthInfoWithContext ¶ added in v1.19.11
func StreamAuth ¶ added in v1.19.11
func StreamAuth() grpc.StreamServerInterceptor
func UnaryAuth ¶ added in v1.19.11
func UnaryAuth() grpc.UnaryServerInterceptor
Types ¶
type AuthInfo ¶ added in v1.19.11
type AuthInfo struct {
AppCode string
}
func GetAuthInfo ¶ added in v1.19.11
type ModifiedServerStream ¶ added in v1.19.11
type ModifiedServerStream struct { grpc.ServerStream // contains filtered or unexported fields }
func (*ModifiedServerStream) Context ¶ added in v1.19.11
func (m *ModifiedServerStream) Context() context.Context
type Server ¶
type Server struct {
appProto.UnimplementedAppServer
}
func (*Server) DestroyToken ¶ added in v1.19.11
func (*Server) GetTokenStatus ¶
func (s *Server) GetTokenStatus(ctx context.Context, req *appProto.TokenIDRequest) (*appProto.TokenStatus, error)
func (*Server) GetUserInfo ¶ added in v1.19.11
func (*Server) RefreshToken ¶ added in v1.19.25
func (s *Server) RefreshToken(ctx context.Context, req *appProto.RefreshTokenRequest) (*appProto.AccessToken, error)
func (*Server) WatchTokenOperation ¶ added in v1.19.19
Click to show internal directories.
Click to hide internal directories.