app

package
v1.19.30-beta-test4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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 added in v1.19.11

func NewRpc() *grpc.Server

func SetAuthInfo added in v1.19.11

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

func SetAuthInfoWithContext added in v1.19.11

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

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

func GetAuthInfo(ctx context.Context) *AuthInfo

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 (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 added in v1.19.11

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

func (*Server) RefreshToken added in v1.19.25

func (*Server) WatchTokenOperation added in v1.19.19

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