app

package
v1.19.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRpc

func NewRpc() *grpc.Server

func SetAuthInfo

func SetAuthInfo(ctx context.Context, info *AuthInfo) context.Context

func SetAuthInfoWithContext

func SetAuthInfoWithContext(ctx context.Context) (context.Context, error)

func StreamAuth

func StreamAuth() grpc.StreamServerInterceptor

func UnaryAuth

func UnaryAuth() grpc.UnaryServerInterceptor

Types

type AuthInfo

type AuthInfo struct {
	AppCode string
}

func GetAuthInfo

func GetAuthInfo(ctx context.Context) *AuthInfo

type ModifiedServerStream

type ModifiedServerStream struct {
	grpc.ServerStream
	// contains filtered or unexported fields
}

func (*ModifiedServerStream) Context

func (m *ModifiedServerStream) Context() context.Context

type Server

type Server struct {
	appProto.UnimplementedAppServer
}

func (*Server) DestroyToken

func (s *Server) DestroyToken(ctx context.Context, req *appProto.RefreshTokenRequest) (*emptypb.Empty, error)

func (*Server) GetTokenStatus

func (s *Server) GetTokenStatus(ctx context.Context, req *appProto.TokenIDRequest) (*appProto.TokenStatus, error)

func (*Server) GetUserInfo

func (s *Server) GetUserInfo(_ context.Context, req *appProto.UserIDRequest) (*appProto.UserInfo, error)

func (*Server) RefreshToken added in v1.19.28

func (*Server) WatchTokenOperation added in v1.19.24

func (s *Server) WatchTokenOperation(_ *emptypb.Empty, srv appProto.App_WatchTokenOperationServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL