Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterStaticAnalysisHTTPServer(s *http.Server, srv StaticAnalysisHTTPServer)
- func RegisterStaticAnalysisHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterStaticAnalysisHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StaticAnalysisClient) error
- func RegisterStaticAnalysisHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterStaticAnalysisHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StaticAnalysisServer) error
- func RegisterStaticAnalysisServer(s grpc.ServiceRegistrar, srv StaticAnalysisServer)
- type AnalyzeDbFileRequest
- func (*AnalyzeDbFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeDbFileRequest) GetDbPath() string
- func (*AnalyzeDbFileRequest) ProtoMessage()
- func (x *AnalyzeDbFileRequest) ProtoReflect() protoreflect.Message
- func (x *AnalyzeDbFileRequest) Reset()
- func (x *AnalyzeDbFileRequest) String() string
- type AnalyzeDbFileResponse
- func (*AnalyzeDbFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeDbFileResponse) GetHotFunctions() []*HotFunction
- func (x *AnalyzeDbFileResponse) GetPackageDependencies() []*PackageDependency
- func (x *AnalyzeDbFileResponse) GetTotalCalls() int32
- func (x *AnalyzeDbFileResponse) GetTotalFunctions() int32
- func (x *AnalyzeDbFileResponse) GetTotalPackages() int32
- func (*AnalyzeDbFileResponse) ProtoMessage()
- func (x *AnalyzeDbFileResponse) ProtoReflect() protoreflect.Message
- func (x *AnalyzeDbFileResponse) Reset()
- func (x *AnalyzeDbFileResponse) String() string
- type AnalyzeProjectPathRequest
- func (*AnalyzeProjectPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeProjectPathRequest) GetAlgo() string
- func (x *AnalyzeProjectPathRequest) GetIgnoreMethod() string
- func (x *AnalyzeProjectPathRequest) GetPath() string
- func (*AnalyzeProjectPathRequest) ProtoMessage()
- func (x *AnalyzeProjectPathRequest) ProtoReflect() protoreflect.Message
- func (x *AnalyzeProjectPathRequest) Reset()
- func (x *AnalyzeProjectPathRequest) String() string
- type AnalyzeProjectPathResponse
- func (*AnalyzeProjectPathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeProjectPathResponse) GetMessage() string
- func (x *AnalyzeProjectPathResponse) GetSuccess() bool
- func (x *AnalyzeProjectPathResponse) GetTaskId() string
- func (*AnalyzeProjectPathResponse) ProtoMessage()
- func (x *AnalyzeProjectPathResponse) ProtoReflect() protoreflect.Message
- func (x *AnalyzeProjectPathResponse) Reset()
- func (x *AnalyzeProjectPathResponse) String() string
- type CloneGitLabRepositoryRequest
- func (*CloneGitLabRepositoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloneGitLabRepositoryRequest) GetBranch() string
- func (x *CloneGitLabRepositoryRequest) GetRepoUrl() string
- func (*CloneGitLabRepositoryRequest) ProtoMessage()
- func (x *CloneGitLabRepositoryRequest) ProtoReflect() protoreflect.Message
- func (x *CloneGitLabRepositoryRequest) Reset()
- func (x *CloneGitLabRepositoryRequest) String() string
- type CloneGitLabRepositoryResponse
- func (*CloneGitLabRepositoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CloneGitLabRepositoryResponse) GetMessage() string
- func (x *CloneGitLabRepositoryResponse) GetSuccess() bool
- func (x *CloneGitLabRepositoryResponse) GetTargetDir() string
- func (*CloneGitLabRepositoryResponse) ProtoMessage()
- func (x *CloneGitLabRepositoryResponse) ProtoReflect() protoreflect.Message
- func (x *CloneGitLabRepositoryResponse) Reset()
- func (x *CloneGitLabRepositoryResponse) String() string
- type DbFileInfo
- func (*DbFileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DbFileInfo) GetCreateTime() string
- func (x *DbFileInfo) GetName() string
- func (x *DbFileInfo) GetPath() string
- func (x *DbFileInfo) GetSize() int64
- func (*DbFileInfo) ProtoMessage()
- func (x *DbFileInfo) ProtoReflect() protoreflect.Message
- func (x *DbFileInfo) Reset()
- func (x *DbFileInfo) String() string
- type FunctionInfo
- func (*FunctionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FunctionInfo) GetCallCount() int32
- func (x *FunctionInfo) GetKey() string
- func (x *FunctionInfo) GetName() string
- func (x *FunctionInfo) GetPackage() string
- func (*FunctionInfo) ProtoMessage()
- func (x *FunctionInfo) ProtoReflect() protoreflect.Message
- func (x *FunctionInfo) Reset()
- func (x *FunctionInfo) String() string
- type GetAnalysisTaskStatusRequest
- func (*GetAnalysisTaskStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAnalysisTaskStatusRequest) GetTaskId() string
- func (*GetAnalysisTaskStatusRequest) ProtoMessage()
- func (x *GetAnalysisTaskStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetAnalysisTaskStatusRequest) Reset()
- func (x *GetAnalysisTaskStatusRequest) String() string
- type GetAnalysisTaskStatusResponse
- func (*GetAnalysisTaskStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAnalysisTaskStatusResponse) GetMessage() string
- func (x *GetAnalysisTaskStatusResponse) GetProgress() float32
- func (x *GetAnalysisTaskStatusResponse) GetStatus() int32
- func (*GetAnalysisTaskStatusResponse) ProtoMessage()
- func (x *GetAnalysisTaskStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetAnalysisTaskStatusResponse) Reset()
- func (x *GetAnalysisTaskStatusResponse) String() string
- type GetFunctionAnalysisReply
- func (*GetFunctionAnalysisReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionAnalysisReply) GetCallData() []*GetFunctionAnalysisReply_FunctionNode
- func (*GetFunctionAnalysisReply) ProtoMessage()
- func (x *GetFunctionAnalysisReply) ProtoReflect() protoreflect.Message
- func (x *GetFunctionAnalysisReply) Reset()
- func (x *GetFunctionAnalysisReply) String() string
- type GetFunctionAnalysisReply_FunctionNode
- func (*GetFunctionAnalysisReply_FunctionNode) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionAnalysisReply_FunctionNode) GetAvgTime() string
- func (x *GetFunctionAnalysisReply_FunctionNode) GetCallCount() int32
- func (x *GetFunctionAnalysisReply_FunctionNode) GetChildren() []*GetFunctionAnalysisReply_FunctionNode
- func (x *GetFunctionAnalysisReply_FunctionNode) GetId() string
- func (x *GetFunctionAnalysisReply_FunctionNode) GetName() string
- func (x *GetFunctionAnalysisReply_FunctionNode) GetPackage() string
- func (*GetFunctionAnalysisReply_FunctionNode) ProtoMessage()
- func (x *GetFunctionAnalysisReply_FunctionNode) ProtoReflect() protoreflect.Message
- func (x *GetFunctionAnalysisReply_FunctionNode) Reset()
- func (x *GetFunctionAnalysisReply_FunctionNode) String() string
- type GetFunctionAnalysisReq
- func (*GetFunctionAnalysisReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionAnalysisReq) GetFunctionName() string
- func (x *GetFunctionAnalysisReq) GetPath() string
- func (x *GetFunctionAnalysisReq) GetType() string
- func (*GetFunctionAnalysisReq) ProtoMessage()
- func (x *GetFunctionAnalysisReq) ProtoReflect() protoreflect.Message
- func (x *GetFunctionAnalysisReq) Reset()
- func (x *GetFunctionAnalysisReq) String() string
- type GetFunctionCallGraphReply
- func (*GetFunctionCallGraphReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionCallGraphReply) GetEdges() []*GetFunctionCallGraphReply_GraphEdge
- func (x *GetFunctionCallGraphReply) GetNodes() []*GetFunctionCallGraphReply_GraphNode
- func (*GetFunctionCallGraphReply) ProtoMessage()
- func (x *GetFunctionCallGraphReply) ProtoReflect() protoreflect.Message
- func (x *GetFunctionCallGraphReply) Reset()
- func (x *GetFunctionCallGraphReply) String() string
- type GetFunctionCallGraphReply_GraphEdge
- func (*GetFunctionCallGraphReply_GraphEdge) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionCallGraphReply_GraphEdge) GetEdgeType() string
- func (x *GetFunctionCallGraphReply_GraphEdge) GetLabel() string
- func (x *GetFunctionCallGraphReply_GraphEdge) GetSource() string
- func (x *GetFunctionCallGraphReply_GraphEdge) GetTarget() string
- func (*GetFunctionCallGraphReply_GraphEdge) ProtoMessage()
- func (x *GetFunctionCallGraphReply_GraphEdge) ProtoReflect() protoreflect.Message
- func (x *GetFunctionCallGraphReply_GraphEdge) Reset()
- func (x *GetFunctionCallGraphReply_GraphEdge) String() string
- type GetFunctionCallGraphReply_GraphNode
- func (*GetFunctionCallGraphReply_GraphNode) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionCallGraphReply_GraphNode) GetAvgTime() string
- func (x *GetFunctionCallGraphReply_GraphNode) GetCallCount() int32
- func (x *GetFunctionCallGraphReply_GraphNode) GetKey() string
- func (x *GetFunctionCallGraphReply_GraphNode) GetName() string
- func (x *GetFunctionCallGraphReply_GraphNode) GetNodeType() string
- func (x *GetFunctionCallGraphReply_GraphNode) GetPackage() string
- func (*GetFunctionCallGraphReply_GraphNode) ProtoMessage()
- func (x *GetFunctionCallGraphReply_GraphNode) ProtoReflect() protoreflect.Message
- func (x *GetFunctionCallGraphReply_GraphNode) Reset()
- func (x *GetFunctionCallGraphReply_GraphNode) String() string
- type GetFunctionCallGraphReq
- func (*GetFunctionCallGraphReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionCallGraphReq) GetDepth() int32
- func (x *GetFunctionCallGraphReq) GetDirection() string
- func (x *GetFunctionCallGraphReq) GetFunctionKey() string
- func (*GetFunctionCallGraphReq) ProtoMessage()
- func (x *GetFunctionCallGraphReq) ProtoReflect() protoreflect.Message
- func (x *GetFunctionCallGraphReq) Reset()
- func (x *GetFunctionCallGraphReq) String() string
- type GetFunctionDownstreamRequest
- func (*GetFunctionDownstreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionDownstreamRequest) GetDbPath() string
- func (x *GetFunctionDownstreamRequest) GetDepth() int32
- func (x *GetFunctionDownstreamRequest) GetFunctionKey() string
- func (x *GetFunctionDownstreamRequest) GetFunctionPackage() string
- func (*GetFunctionDownstreamRequest) ProtoMessage()
- func (x *GetFunctionDownstreamRequest) ProtoReflect() protoreflect.Message
- func (x *GetFunctionDownstreamRequest) Reset()
- func (x *GetFunctionDownstreamRequest) String() string
- type GetFunctionDownstreamResponse
- func (*GetFunctionDownstreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionDownstreamResponse) GetEdges() []*GraphEdge
- func (x *GetFunctionDownstreamResponse) GetNodes() []*GraphNode
- func (*GetFunctionDownstreamResponse) ProtoMessage()
- func (x *GetFunctionDownstreamResponse) ProtoReflect() protoreflect.Message
- func (x *GetFunctionDownstreamResponse) Reset()
- func (x *GetFunctionDownstreamResponse) String() string
- type GetFunctionFullChainRequest
- func (*GetFunctionFullChainRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionFullChainRequest) GetDbPath() string
- func (x *GetFunctionFullChainRequest) GetFunctionKey() string
- func (*GetFunctionFullChainRequest) ProtoMessage()
- func (x *GetFunctionFullChainRequest) ProtoReflect() protoreflect.Message
- func (x *GetFunctionFullChainRequest) Reset()
- func (x *GetFunctionFullChainRequest) String() string
- type GetFunctionFullChainResponse
- func (*GetFunctionFullChainResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionFullChainResponse) GetEdges() []*GraphEdge
- func (x *GetFunctionFullChainResponse) GetNodes() []*GraphNode
- func (*GetFunctionFullChainResponse) ProtoMessage()
- func (x *GetFunctionFullChainResponse) ProtoReflect() protoreflect.Message
- func (x *GetFunctionFullChainResponse) Reset()
- func (x *GetFunctionFullChainResponse) String() string
- type GetFunctionUpstreamRequest
- func (*GetFunctionUpstreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionUpstreamRequest) GetDbPath() string
- func (x *GetFunctionUpstreamRequest) GetDepth() int32
- func (x *GetFunctionUpstreamRequest) GetFunctionKey() string
- func (x *GetFunctionUpstreamRequest) GetFunctionPackage() string
- func (*GetFunctionUpstreamRequest) ProtoMessage()
- func (x *GetFunctionUpstreamRequest) ProtoReflect() protoreflect.Message
- func (x *GetFunctionUpstreamRequest) Reset()
- func (x *GetFunctionUpstreamRequest) String() string
- type GetFunctionUpstreamResponse
- func (*GetFunctionUpstreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionUpstreamResponse) GetEdges() []*GraphEdge
- func (x *GetFunctionUpstreamResponse) GetNodes() []*GraphNode
- func (*GetFunctionUpstreamResponse) ProtoMessage()
- func (x *GetFunctionUpstreamResponse) ProtoReflect() protoreflect.Message
- func (x *GetFunctionUpstreamResponse) Reset()
- func (x *GetFunctionUpstreamResponse) String() string
- type GetHotFunctionsReply
- func (*GetHotFunctionsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetHotFunctionsReply) GetFunctions() []*GetHotFunctionsReply_HotFunction
- func (*GetHotFunctionsReply) ProtoMessage()
- func (x *GetHotFunctionsReply) ProtoReflect() protoreflect.Message
- func (x *GetHotFunctionsReply) Reset()
- func (x *GetHotFunctionsReply) String() string
- type GetHotFunctionsReply_HotFunction
- func (*GetHotFunctionsReply_HotFunction) Descriptor() ([]byte, []int)deprecated
- func (x *GetHotFunctionsReply_HotFunction) GetAvgTime() string
- func (x *GetHotFunctionsReply_HotFunction) GetCallCount() int32
- func (x *GetHotFunctionsReply_HotFunction) GetName() string
- func (x *GetHotFunctionsReply_HotFunction) GetPackage() string
- func (x *GetHotFunctionsReply_HotFunction) GetTotalTime() string
- func (*GetHotFunctionsReply_HotFunction) ProtoMessage()
- func (x *GetHotFunctionsReply_HotFunction) ProtoReflect() protoreflect.Message
- func (x *GetHotFunctionsReply_HotFunction) Reset()
- func (x *GetHotFunctionsReply_HotFunction) String() string
- type GetHotFunctionsReq
- func (*GetHotFunctionsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetHotFunctionsReq) GetSortBy() string
- func (*GetHotFunctionsReq) ProtoMessage()
- func (x *GetHotFunctionsReq) ProtoReflect() protoreflect.Message
- func (x *GetHotFunctionsReq) Reset()
- func (x *GetHotFunctionsReq) String() string
- type GetHotFunctionsRequest
- func (*GetHotFunctionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHotFunctionsRequest) GetDbPath() string
- func (x *GetHotFunctionsRequest) GetPage() int32
- func (x *GetHotFunctionsRequest) GetPageSize() int32
- func (*GetHotFunctionsRequest) ProtoMessage()
- func (x *GetHotFunctionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetHotFunctionsRequest) Reset()
- func (x *GetHotFunctionsRequest) String() string
- type GetHotFunctionsResponse
- func (*GetHotFunctionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHotFunctionsResponse) GetFunctions() []*HotFunction
- func (x *GetHotFunctionsResponse) GetPage() int32
- func (x *GetHotFunctionsResponse) GetPageCount() int32
- func (x *GetHotFunctionsResponse) GetPageSize() int32
- func (x *GetHotFunctionsResponse) GetTotal() int32
- func (*GetHotFunctionsResponse) ProtoMessage()
- func (x *GetHotFunctionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetHotFunctionsResponse) Reset()
- func (x *GetHotFunctionsResponse) String() string
- type GetPackageDependenciesRequest
- func (*GetPackageDependenciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPackageDependenciesRequest) GetDbPath() string
- func (x *GetPackageDependenciesRequest) GetPage() int32
- func (x *GetPackageDependenciesRequest) GetPageSize() int32
- func (*GetPackageDependenciesRequest) ProtoMessage()
- func (x *GetPackageDependenciesRequest) ProtoReflect() protoreflect.Message
- func (x *GetPackageDependenciesRequest) Reset()
- func (x *GetPackageDependenciesRequest) String() string
- type GetPackageDependenciesResponse
- func (*GetPackageDependenciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPackageDependenciesResponse) GetDependencies() []*PackageDependency
- func (x *GetPackageDependenciesResponse) GetPage() int32
- func (x *GetPackageDependenciesResponse) GetPageCount() int32
- func (x *GetPackageDependenciesResponse) GetPageSize() int32
- func (x *GetPackageDependenciesResponse) GetTotal() int32
- func (*GetPackageDependenciesResponse) ProtoMessage()
- func (x *GetPackageDependenciesResponse) ProtoReflect() protoreflect.Message
- func (x *GetPackageDependenciesResponse) Reset()
- func (x *GetPackageDependenciesResponse) String() string
- type GetStaticDbFilesRequest
- type GetStaticDbFilesResponse
- func (*GetStaticDbFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStaticDbFilesResponse) GetFiles() []*DbFileInfo
- func (*GetStaticDbFilesResponse) ProtoMessage()
- func (x *GetStaticDbFilesResponse) ProtoReflect() protoreflect.Message
- func (x *GetStaticDbFilesResponse) Reset()
- func (x *GetStaticDbFilesResponse) String() string
- type GetTreeGraphReply
- type GetTreeGraphReq
- func (*GetTreeGraphReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetTreeGraphReq) GetDbPath() string
- func (x *GetTreeGraphReq) GetFunctionKey() string
- func (*GetTreeGraphReq) ProtoMessage()
- func (x *GetTreeGraphReq) ProtoReflect() protoreflect.Message
- func (x *GetTreeGraphReq) Reset()
- func (x *GetTreeGraphReq) String() string
- type GitLabRepository
- func (*GitLabRepository) Descriptor() ([]byte, []int)deprecated
- func (x *GitLabRepository) GetDefaultBranch() string
- func (x *GitLabRepository) GetDescription() string
- func (x *GitLabRepository) GetFullName() string
- func (x *GitLabRepository) GetHttpUrl() string
- func (x *GitLabRepository) GetId() int32
- func (x *GitLabRepository) GetLastActivity() string
- func (x *GitLabRepository) GetName() string
- func (x *GitLabRepository) GetSshUrl() string
- func (x *GitLabRepository) GetVisibility() string
- func (x *GitLabRepository) GetWebUrl() string
- func (*GitLabRepository) ProtoMessage()
- func (x *GitLabRepository) ProtoReflect() protoreflect.Message
- func (x *GitLabRepository) Reset()
- func (x *GitLabRepository) String() string
- type GraphEdge
- func (*GraphEdge) Descriptor() ([]byte, []int)deprecated
- func (x *GraphEdge) GetSource() string
- func (x *GraphEdge) GetTarget() string
- func (x *GraphEdge) GetValue() int32
- func (*GraphEdge) ProtoMessage()
- func (x *GraphEdge) ProtoReflect() protoreflect.Message
- func (x *GraphEdge) Reset()
- func (x *GraphEdge) String() string
- type GraphNode
- func (*GraphNode) Descriptor() ([]byte, []int)deprecated
- func (x *GraphNode) GetCallCount() int32
- func (x *GraphNode) GetKey() string
- func (x *GraphNode) GetName() string
- func (x *GraphNode) GetPackage() string
- func (*GraphNode) ProtoMessage()
- func (x *GraphNode) ProtoReflect() protoreflect.Message
- func (x *GraphNode) Reset()
- func (x *GraphNode) String() string
- type HotFunction
- func (*HotFunction) Descriptor() ([]byte, []int)deprecated
- func (x *HotFunction) GetCallCount() int32
- func (x *HotFunction) GetKey() string
- func (x *HotFunction) GetName() string
- func (x *HotFunction) GetPackage() string
- func (*HotFunction) ProtoMessage()
- func (x *HotFunction) ProtoReflect() protoreflect.Message
- func (x *HotFunction) Reset()
- func (x *HotFunction) String() string
- type ListGitLabRepositoriesRequest
- func (*ListGitLabRepositoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListGitLabRepositoriesRequest) ProtoMessage()
- func (x *ListGitLabRepositoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ListGitLabRepositoriesRequest) Reset()
- func (x *ListGitLabRepositoriesRequest) String() string
- type ListGitLabRepositoriesResponse
- func (*ListGitLabRepositoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGitLabRepositoriesResponse) GetRepositories() []*GitLabRepository
- func (*ListGitLabRepositoriesResponse) ProtoMessage()
- func (x *ListGitLabRepositoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListGitLabRepositoriesResponse) Reset()
- func (x *ListGitLabRepositoriesResponse) String() string
- type PackageDependency
- func (*PackageDependency) Descriptor() ([]byte, []int)deprecated
- func (x *PackageDependency) GetCount() int32
- func (x *PackageDependency) GetSource() string
- func (x *PackageDependency) GetTarget() string
- func (*PackageDependency) ProtoMessage()
- func (x *PackageDependency) ProtoReflect() protoreflect.Message
- func (x *PackageDependency) Reset()
- func (x *PackageDependency) String() string
- type SearchFunctionsRequest
- func (*SearchFunctionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchFunctionsRequest) GetDbPath() string
- func (x *SearchFunctionsRequest) GetQuery() string
- func (*SearchFunctionsRequest) ProtoMessage()
- func (x *SearchFunctionsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchFunctionsRequest) Reset()
- func (x *SearchFunctionsRequest) String() string
- type SearchFunctionsResponse
- func (*SearchFunctionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchFunctionsResponse) GetFunctions() []*FunctionInfo
- func (*SearchFunctionsResponse) ProtoMessage()
- func (x *SearchFunctionsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchFunctionsResponse) Reset()
- func (x *SearchFunctionsResponse) String() string
- type StaticAnalysisClient
- type StaticAnalysisHTTPClient
- type StaticAnalysisHTTPClientImpl
- func (c *StaticAnalysisHTTPClientImpl) AnalyzeDbFile(ctx context.Context, in *AnalyzeDbFileRequest, opts ...http.CallOption) (*AnalyzeDbFileResponse, error)
- func (c *StaticAnalysisHTTPClientImpl) AnalyzeProjectPath(ctx context.Context, in *AnalyzeProjectPathRequest, opts ...http.CallOption) (*AnalyzeProjectPathResponse, error)
- func (c *StaticAnalysisHTTPClientImpl) GetFunctionAnalysis(ctx context.Context, in *GetFunctionAnalysisReq, opts ...http.CallOption) (*GetFunctionAnalysisReply, error)
- func (c *StaticAnalysisHTTPClientImpl) GetFunctionCallGraph(ctx context.Context, in *GetFunctionCallGraphReq, opts ...http.CallOption) (*GetFunctionCallGraphReply, error)
- func (c *StaticAnalysisHTTPClientImpl) GetHotFunctions(ctx context.Context, in *GetHotFunctionsReq, opts ...http.CallOption) (*GetHotFunctionsReply, error)
- func (c *StaticAnalysisHTTPClientImpl) GetStaticDbFiles(ctx context.Context, in *GetStaticDbFilesRequest, opts ...http.CallOption) (*GetStaticDbFilesResponse, error)
- type StaticAnalysisHTTPServer
- type StaticAnalysisServer
- type TreeNode
- func (*TreeNode) Descriptor() ([]byte, []int)deprecated
- func (x *TreeNode) GetChildren() []*TreeNode
- func (x *TreeNode) GetCollapsed() bool
- func (x *TreeNode) GetName() string
- func (x *TreeNode) GetValue() int64
- func (*TreeNode) ProtoMessage()
- func (x *TreeNode) ProtoReflect() protoreflect.Message
- func (x *TreeNode) Reset()
- func (x *TreeNode) String() string
- type UnimplementedStaticAnalysisServer
- func (UnimplementedStaticAnalysisServer) AnalyzeDbFile(context.Context, *AnalyzeDbFileRequest) (*AnalyzeDbFileResponse, error)
- func (UnimplementedStaticAnalysisServer) AnalyzeProjectPath(context.Context, *AnalyzeProjectPathRequest) (*AnalyzeProjectPathResponse, error)
- func (UnimplementedStaticAnalysisServer) CloneGitLabRepository(context.Context, *CloneGitLabRepositoryRequest) (*CloneGitLabRepositoryResponse, error)
- func (UnimplementedStaticAnalysisServer) GetAnalysisTaskStatus(context.Context, *GetAnalysisTaskStatusRequest) (*GetAnalysisTaskStatusResponse, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionAnalysis(context.Context, *GetFunctionAnalysisReq) (*GetFunctionAnalysisReply, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionCallGraph(context.Context, *GetFunctionCallGraphReq) (*GetFunctionCallGraphReply, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionDownstream(context.Context, *GetFunctionDownstreamRequest) (*GetFunctionDownstreamResponse, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionFullChain(context.Context, *GetFunctionFullChainRequest) (*GetFunctionFullChainResponse, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionUpstream(context.Context, *GetFunctionUpstreamRequest) (*GetFunctionUpstreamResponse, error)
- func (UnimplementedStaticAnalysisServer) GetHotFunctions(context.Context, *GetHotFunctionsRequest) (*GetHotFunctionsResponse, error)
- func (UnimplementedStaticAnalysisServer) GetPackageDependencies(context.Context, *GetPackageDependenciesRequest) (*GetPackageDependenciesResponse, error)
- func (UnimplementedStaticAnalysisServer) GetStaticDbFiles(context.Context, *GetStaticDbFilesRequest) (*GetStaticDbFilesResponse, error)
- func (UnimplementedStaticAnalysisServer) GetTreeGraph(context.Context, *GetTreeGraphReq) (*GetTreeGraphReply, error)
- func (UnimplementedStaticAnalysisServer) ListGitLabRepositories(context.Context, *ListGitLabRepositoriesRequest) (*ListGitLabRepositoriesResponse, error)
- func (UnimplementedStaticAnalysisServer) SearchFunctions(context.Context, *SearchFunctionsRequest) (*SearchFunctionsResponse, error)
- type UnsafeStaticAnalysisServer
Constants ¶
const ( StaticAnalysis_GetStaticDbFiles_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetStaticDbFiles" StaticAnalysis_GetAnalysisTaskStatus_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetAnalysisTaskStatus" StaticAnalysis_AnalyzeProjectPath_FullMethodName = "/staticanalysis.v1.StaticAnalysis/AnalyzeProjectPath" StaticAnalysis_AnalyzeDbFile_FullMethodName = "/staticanalysis.v1.StaticAnalysis/AnalyzeDbFile" StaticAnalysis_GetFunctionAnalysis_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionAnalysis" StaticAnalysis_GetFunctionCallGraph_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionCallGraph" StaticAnalysis_ListGitLabRepositories_FullMethodName = "/staticanalysis.v1.StaticAnalysis/ListGitLabRepositories" StaticAnalysis_CloneGitLabRepository_FullMethodName = "/staticanalysis.v1.StaticAnalysis/CloneGitLabRepository" StaticAnalysis_GetPackageDependencies_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetPackageDependencies" StaticAnalysis_GetHotFunctions_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetHotFunctions" StaticAnalysis_SearchFunctions_FullMethodName = "/staticanalysis.v1.StaticAnalysis/SearchFunctions" StaticAnalysis_GetFunctionUpstream_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionUpstream" StaticAnalysis_GetFunctionDownstream_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionDownstream" StaticAnalysis_GetFunctionFullChain_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionFullChain" StaticAnalysis_GetTreeGraph_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetTreeGraph" )
const OperationStaticAnalysisAnalyzeDbFile = "/staticanalysis.v1.StaticAnalysis/AnalyzeDbFile"
const OperationStaticAnalysisAnalyzeProjectPath = "/staticanalysis.v1.StaticAnalysis/AnalyzeProjectPath"
const OperationStaticAnalysisGetFunctionAnalysis = "/staticanalysis.v1.StaticAnalysis/GetFunctionAnalysis"
const OperationStaticAnalysisGetFunctionCallGraph = "/staticanalysis.v1.StaticAnalysis/GetFunctionCallGraph"
const OperationStaticAnalysisGetHotFunctions = "/staticanalysis.v1.StaticAnalysis/GetHotFunctions"
const OperationStaticAnalysisGetStaticDbFiles = "/staticanalysis.v1.StaticAnalysis/GetStaticDbFiles"
Variables ¶
var File_staticanalysis_v1_staticanalysis_proto protoreflect.FileDescriptor
var StaticAnalysis_ServiceDesc = grpc.ServiceDesc{ ServiceName: "staticanalysis.v1.StaticAnalysis", HandlerType: (*StaticAnalysisServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStaticDbFiles", Handler: _StaticAnalysis_GetStaticDbFiles_Handler, }, { MethodName: "GetAnalysisTaskStatus", Handler: _StaticAnalysis_GetAnalysisTaskStatus_Handler, }, { MethodName: "AnalyzeProjectPath", Handler: _StaticAnalysis_AnalyzeProjectPath_Handler, }, { MethodName: "AnalyzeDbFile", Handler: _StaticAnalysis_AnalyzeDbFile_Handler, }, { MethodName: "GetFunctionAnalysis", Handler: _StaticAnalysis_GetFunctionAnalysis_Handler, }, { MethodName: "GetFunctionCallGraph", Handler: _StaticAnalysis_GetFunctionCallGraph_Handler, }, { MethodName: "ListGitLabRepositories", Handler: _StaticAnalysis_ListGitLabRepositories_Handler, }, { MethodName: "CloneGitLabRepository", Handler: _StaticAnalysis_CloneGitLabRepository_Handler, }, { MethodName: "GetPackageDependencies", Handler: _StaticAnalysis_GetPackageDependencies_Handler, }, { MethodName: "GetHotFunctions", Handler: _StaticAnalysis_GetHotFunctions_Handler, }, { MethodName: "SearchFunctions", Handler: _StaticAnalysis_SearchFunctions_Handler, }, { MethodName: "GetFunctionUpstream", Handler: _StaticAnalysis_GetFunctionUpstream_Handler, }, { MethodName: "GetFunctionDownstream", Handler: _StaticAnalysis_GetFunctionDownstream_Handler, }, { MethodName: "GetFunctionFullChain", Handler: _StaticAnalysis_GetFunctionFullChain_Handler, }, { MethodName: "GetTreeGraph", Handler: _StaticAnalysis_GetTreeGraph_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "staticanalysis/v1/staticanalysis.proto", }
StaticAnalysis_ServiceDesc is the grpc.ServiceDesc for StaticAnalysis service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStaticAnalysisHTTPServer ¶
func RegisterStaticAnalysisHTTPServer(s *http.Server, srv StaticAnalysisHTTPServer)
func RegisterStaticAnalysisHandler ¶
func RegisterStaticAnalysisHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterStaticAnalysisHandler registers the http handlers for service StaticAnalysis to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterStaticAnalysisHandlerClient ¶
func RegisterStaticAnalysisHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StaticAnalysisClient) error
RegisterStaticAnalysisHandlerClient registers the http handlers for service StaticAnalysis to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StaticAnalysisClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StaticAnalysisClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StaticAnalysisClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterStaticAnalysisHandlerFromEndpoint ¶
func RegisterStaticAnalysisHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterStaticAnalysisHandlerFromEndpoint is same as RegisterStaticAnalysisHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterStaticAnalysisHandlerServer ¶
func RegisterStaticAnalysisHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StaticAnalysisServer) error
RegisterStaticAnalysisHandlerServer registers the http handlers for service StaticAnalysis to "mux". UnaryRPC :call StaticAnalysisServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterStaticAnalysisHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterStaticAnalysisServer ¶
func RegisterStaticAnalysisServer(s grpc.ServiceRegistrar, srv StaticAnalysisServer)
Types ¶
type AnalyzeDbFileRequest ¶
type AnalyzeDbFileRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"`
// contains filtered or unexported fields
}
分析数据库文件请求
func (*AnalyzeDbFileRequest) Descriptor
deprecated
func (*AnalyzeDbFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeDbFileRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeDbFileRequest) GetDbPath ¶
func (x *AnalyzeDbFileRequest) GetDbPath() string
func (*AnalyzeDbFileRequest) ProtoMessage ¶
func (*AnalyzeDbFileRequest) ProtoMessage()
func (*AnalyzeDbFileRequest) ProtoReflect ¶
func (x *AnalyzeDbFileRequest) ProtoReflect() protoreflect.Message
func (*AnalyzeDbFileRequest) Reset ¶
func (x *AnalyzeDbFileRequest) Reset()
func (*AnalyzeDbFileRequest) String ¶
func (x *AnalyzeDbFileRequest) String() string
type AnalyzeDbFileResponse ¶
type AnalyzeDbFileResponse struct {
TotalFunctions int32 `protobuf:"varint,1,opt,name=total_functions,json=totalFunctions,proto3" json:"total_functions,omitempty"`
TotalCalls int32 `protobuf:"varint,2,opt,name=total_calls,json=totalCalls,proto3" json:"total_calls,omitempty"`
TotalPackages int32 `protobuf:"varint,3,opt,name=total_packages,json=totalPackages,proto3" json:"total_packages,omitempty"`
PackageDependencies []*PackageDependency `protobuf:"bytes,4,rep,name=package_dependencies,json=packageDependencies,proto3" json:"package_dependencies,omitempty"`
HotFunctions []*HotFunction `protobuf:"bytes,5,rep,name=hot_functions,json=hotFunctions,proto3" json:"hot_functions,omitempty"`
// contains filtered or unexported fields
}
分析数据库文件响应
func (*AnalyzeDbFileResponse) Descriptor
deprecated
func (*AnalyzeDbFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeDbFileResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeDbFileResponse) GetHotFunctions ¶
func (x *AnalyzeDbFileResponse) GetHotFunctions() []*HotFunction
func (*AnalyzeDbFileResponse) GetPackageDependencies ¶
func (x *AnalyzeDbFileResponse) GetPackageDependencies() []*PackageDependency
func (*AnalyzeDbFileResponse) GetTotalCalls ¶
func (x *AnalyzeDbFileResponse) GetTotalCalls() int32
func (*AnalyzeDbFileResponse) GetTotalFunctions ¶
func (x *AnalyzeDbFileResponse) GetTotalFunctions() int32
func (*AnalyzeDbFileResponse) GetTotalPackages ¶
func (x *AnalyzeDbFileResponse) GetTotalPackages() int32
func (*AnalyzeDbFileResponse) ProtoMessage ¶
func (*AnalyzeDbFileResponse) ProtoMessage()
func (*AnalyzeDbFileResponse) ProtoReflect ¶
func (x *AnalyzeDbFileResponse) ProtoReflect() protoreflect.Message
func (*AnalyzeDbFileResponse) Reset ¶
func (x *AnalyzeDbFileResponse) Reset()
func (*AnalyzeDbFileResponse) String ¶
func (x *AnalyzeDbFileResponse) String() string
type AnalyzeProjectPathRequest ¶
type AnalyzeProjectPathRequest struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Algo string `protobuf:"bytes,2,opt,name=algo,proto3" json:"algo,omitempty"` // 分析算法: "vta", "rta", "cha", "static"
IgnoreMethod string `protobuf:"bytes,3,opt,name=ignore_method,json=ignoreMethod,proto3" json:"ignore_method,omitempty"` // 忽略分析特定方法
// contains filtered or unexported fields
}
分析项目路径请求
func (*AnalyzeProjectPathRequest) Descriptor
deprecated
func (*AnalyzeProjectPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeProjectPathRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeProjectPathRequest) GetAlgo ¶
func (x *AnalyzeProjectPathRequest) GetAlgo() string
func (*AnalyzeProjectPathRequest) GetIgnoreMethod ¶
func (x *AnalyzeProjectPathRequest) GetIgnoreMethod() string
func (*AnalyzeProjectPathRequest) GetPath ¶
func (x *AnalyzeProjectPathRequest) GetPath() string
func (*AnalyzeProjectPathRequest) ProtoMessage ¶
func (*AnalyzeProjectPathRequest) ProtoMessage()
func (*AnalyzeProjectPathRequest) ProtoReflect ¶
func (x *AnalyzeProjectPathRequest) ProtoReflect() protoreflect.Message
func (*AnalyzeProjectPathRequest) Reset ¶
func (x *AnalyzeProjectPathRequest) Reset()
func (*AnalyzeProjectPathRequest) String ¶
func (x *AnalyzeProjectPathRequest) String() string
type AnalyzeProjectPathResponse ¶
type AnalyzeProjectPathResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// contains filtered or unexported fields
}
分析项目路径响应
func (*AnalyzeProjectPathResponse) Descriptor
deprecated
func (*AnalyzeProjectPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeProjectPathResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeProjectPathResponse) GetMessage ¶
func (x *AnalyzeProjectPathResponse) GetMessage() string
func (*AnalyzeProjectPathResponse) GetSuccess ¶
func (x *AnalyzeProjectPathResponse) GetSuccess() bool
func (*AnalyzeProjectPathResponse) GetTaskId ¶
func (x *AnalyzeProjectPathResponse) GetTaskId() string
func (*AnalyzeProjectPathResponse) ProtoMessage ¶
func (*AnalyzeProjectPathResponse) ProtoMessage()
func (*AnalyzeProjectPathResponse) ProtoReflect ¶
func (x *AnalyzeProjectPathResponse) ProtoReflect() protoreflect.Message
func (*AnalyzeProjectPathResponse) Reset ¶
func (x *AnalyzeProjectPathResponse) Reset()
func (*AnalyzeProjectPathResponse) String ¶
func (x *AnalyzeProjectPathResponse) String() string
type CloneGitLabRepositoryRequest ¶
type CloneGitLabRepositoryRequest struct {
RepoUrl string `protobuf:"bytes,1,opt,name=repo_url,json=repoUrl,proto3" json:"repo_url,omitempty"` // 仓库URL
Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` // 分支名称
// contains filtered or unexported fields
}
克隆GitLab仓库请求
func (*CloneGitLabRepositoryRequest) Descriptor
deprecated
func (*CloneGitLabRepositoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloneGitLabRepositoryRequest.ProtoReflect.Descriptor instead.
func (*CloneGitLabRepositoryRequest) GetBranch ¶
func (x *CloneGitLabRepositoryRequest) GetBranch() string
func (*CloneGitLabRepositoryRequest) GetRepoUrl ¶
func (x *CloneGitLabRepositoryRequest) GetRepoUrl() string
func (*CloneGitLabRepositoryRequest) ProtoMessage ¶
func (*CloneGitLabRepositoryRequest) ProtoMessage()
func (*CloneGitLabRepositoryRequest) ProtoReflect ¶
func (x *CloneGitLabRepositoryRequest) ProtoReflect() protoreflect.Message
func (*CloneGitLabRepositoryRequest) Reset ¶
func (x *CloneGitLabRepositoryRequest) Reset()
func (*CloneGitLabRepositoryRequest) String ¶
func (x *CloneGitLabRepositoryRequest) String() string
type CloneGitLabRepositoryResponse ¶
type CloneGitLabRepositoryResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // 是否成功
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息
TargetDir string `protobuf:"bytes,3,opt,name=target_dir,json=targetDir,proto3" json:"target_dir,omitempty"` // 目标目录
// contains filtered or unexported fields
}
克隆GitLab仓库响应
func (*CloneGitLabRepositoryResponse) Descriptor
deprecated
func (*CloneGitLabRepositoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloneGitLabRepositoryResponse.ProtoReflect.Descriptor instead.
func (*CloneGitLabRepositoryResponse) GetMessage ¶
func (x *CloneGitLabRepositoryResponse) GetMessage() string
func (*CloneGitLabRepositoryResponse) GetSuccess ¶
func (x *CloneGitLabRepositoryResponse) GetSuccess() bool
func (*CloneGitLabRepositoryResponse) GetTargetDir ¶
func (x *CloneGitLabRepositoryResponse) GetTargetDir() string
func (*CloneGitLabRepositoryResponse) ProtoMessage ¶
func (*CloneGitLabRepositoryResponse) ProtoMessage()
func (*CloneGitLabRepositoryResponse) ProtoReflect ¶
func (x *CloneGitLabRepositoryResponse) ProtoReflect() protoreflect.Message
func (*CloneGitLabRepositoryResponse) Reset ¶
func (x *CloneGitLabRepositoryResponse) Reset()
func (*CloneGitLabRepositoryResponse) String ¶
func (x *CloneGitLabRepositoryResponse) String() string
type DbFileInfo ¶
type DbFileInfo struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
CreateTime string `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}
静态分析数据库文件信息
func (*DbFileInfo) Descriptor
deprecated
func (*DbFileInfo) Descriptor() ([]byte, []int)
Deprecated: Use DbFileInfo.ProtoReflect.Descriptor instead.
func (*DbFileInfo) GetCreateTime ¶
func (x *DbFileInfo) GetCreateTime() string
func (*DbFileInfo) GetName ¶
func (x *DbFileInfo) GetName() string
func (*DbFileInfo) GetPath ¶
func (x *DbFileInfo) GetPath() string
func (*DbFileInfo) GetSize ¶
func (x *DbFileInfo) GetSize() int64
func (*DbFileInfo) ProtoMessage ¶
func (*DbFileInfo) ProtoMessage()
func (*DbFileInfo) ProtoReflect ¶
func (x *DbFileInfo) ProtoReflect() protoreflect.Message
func (*DbFileInfo) Reset ¶
func (x *DbFileInfo) Reset()
func (*DbFileInfo) String ¶
func (x *DbFileInfo) String() string
type FunctionInfo ¶
type FunctionInfo struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 函数唯一标识
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 函数名称
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 包名
CallCount int32 `protobuf:"varint,4,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
// contains filtered or unexported fields
}
函数信息
func (*FunctionInfo) Descriptor
deprecated
func (*FunctionInfo) Descriptor() ([]byte, []int)
Deprecated: Use FunctionInfo.ProtoReflect.Descriptor instead.
func (*FunctionInfo) GetCallCount ¶
func (x *FunctionInfo) GetCallCount() int32
func (*FunctionInfo) GetKey ¶
func (x *FunctionInfo) GetKey() string
func (*FunctionInfo) GetName ¶
func (x *FunctionInfo) GetName() string
func (*FunctionInfo) GetPackage ¶
func (x *FunctionInfo) GetPackage() string
func (*FunctionInfo) ProtoMessage ¶
func (*FunctionInfo) ProtoMessage()
func (*FunctionInfo) ProtoReflect ¶
func (x *FunctionInfo) ProtoReflect() protoreflect.Message
func (*FunctionInfo) Reset ¶
func (x *FunctionInfo) Reset()
func (*FunctionInfo) String ¶
func (x *FunctionInfo) String() string
type GetAnalysisTaskStatusRequest ¶
type GetAnalysisTaskStatusRequest struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// contains filtered or unexported fields
}
获取分析任务状态请求
func (*GetAnalysisTaskStatusRequest) Descriptor
deprecated
func (*GetAnalysisTaskStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAnalysisTaskStatusRequest.ProtoReflect.Descriptor instead.
func (*GetAnalysisTaskStatusRequest) GetTaskId ¶
func (x *GetAnalysisTaskStatusRequest) GetTaskId() string
func (*GetAnalysisTaskStatusRequest) ProtoMessage ¶
func (*GetAnalysisTaskStatusRequest) ProtoMessage()
func (*GetAnalysisTaskStatusRequest) ProtoReflect ¶
func (x *GetAnalysisTaskStatusRequest) ProtoReflect() protoreflect.Message
func (*GetAnalysisTaskStatusRequest) Reset ¶
func (x *GetAnalysisTaskStatusRequest) Reset()
func (*GetAnalysisTaskStatusRequest) String ¶
func (x *GetAnalysisTaskStatusRequest) String() string
type GetAnalysisTaskStatusResponse ¶
type GetAnalysisTaskStatusResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 状态:0: starting, 1: processing, 2: completed, -1: failed, -2: not_found
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息
Progress float32 `protobuf:"fixed32,3,opt,name=progress,proto3" json:"progress,omitempty"` // 进度百分比 (0-100)
// contains filtered or unexported fields
}
获取分析任务状态响应
func (*GetAnalysisTaskStatusResponse) Descriptor
deprecated
func (*GetAnalysisTaskStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAnalysisTaskStatusResponse.ProtoReflect.Descriptor instead.
func (*GetAnalysisTaskStatusResponse) GetMessage ¶
func (x *GetAnalysisTaskStatusResponse) GetMessage() string
func (*GetAnalysisTaskStatusResponse) GetProgress ¶
func (x *GetAnalysisTaskStatusResponse) GetProgress() float32
func (*GetAnalysisTaskStatusResponse) GetStatus ¶
func (x *GetAnalysisTaskStatusResponse) GetStatus() int32
func (*GetAnalysisTaskStatusResponse) ProtoMessage ¶
func (*GetAnalysisTaskStatusResponse) ProtoMessage()
func (*GetAnalysisTaskStatusResponse) ProtoReflect ¶
func (x *GetAnalysisTaskStatusResponse) ProtoReflect() protoreflect.Message
func (*GetAnalysisTaskStatusResponse) Reset ¶
func (x *GetAnalysisTaskStatusResponse) Reset()
func (*GetAnalysisTaskStatusResponse) String ¶
func (x *GetAnalysisTaskStatusResponse) String() string
type GetFunctionAnalysisReply ¶
type GetFunctionAnalysisReply struct {
CallData []*GetFunctionAnalysisReply_FunctionNode `protobuf:"bytes,1,rep,name=callData,proto3" json:"callData,omitempty"` // 调用关系数据
// contains filtered or unexported fields
}
获取函数调用关系分析的响应
func (*GetFunctionAnalysisReply) Descriptor
deprecated
func (*GetFunctionAnalysisReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionAnalysisReply.ProtoReflect.Descriptor instead.
func (*GetFunctionAnalysisReply) GetCallData ¶
func (x *GetFunctionAnalysisReply) GetCallData() []*GetFunctionAnalysisReply_FunctionNode
func (*GetFunctionAnalysisReply) ProtoMessage ¶
func (*GetFunctionAnalysisReply) ProtoMessage()
func (*GetFunctionAnalysisReply) ProtoReflect ¶
func (x *GetFunctionAnalysisReply) ProtoReflect() protoreflect.Message
func (*GetFunctionAnalysisReply) Reset ¶
func (x *GetFunctionAnalysisReply) Reset()
func (*GetFunctionAnalysisReply) String ¶
func (x *GetFunctionAnalysisReply) String() string
type GetFunctionAnalysisReply_FunctionNode ¶
type GetFunctionAnalysisReply_FunctionNode struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 节点ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 函数名称
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 包名
CallCount int32 `protobuf:"varint,4,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
AvgTime string `protobuf:"bytes,5,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` // 平均耗时
Children []*GetFunctionAnalysisReply_FunctionNode `protobuf:"bytes,6,rep,name=children,proto3" json:"children,omitempty"` // 子节点
// contains filtered or unexported fields
}
func (*GetFunctionAnalysisReply_FunctionNode) Descriptor
deprecated
func (*GetFunctionAnalysisReply_FunctionNode) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionAnalysisReply_FunctionNode.ProtoReflect.Descriptor instead.
func (*GetFunctionAnalysisReply_FunctionNode) GetAvgTime ¶
func (x *GetFunctionAnalysisReply_FunctionNode) GetAvgTime() string
func (*GetFunctionAnalysisReply_FunctionNode) GetCallCount ¶
func (x *GetFunctionAnalysisReply_FunctionNode) GetCallCount() int32
func (*GetFunctionAnalysisReply_FunctionNode) GetChildren ¶
func (x *GetFunctionAnalysisReply_FunctionNode) GetChildren() []*GetFunctionAnalysisReply_FunctionNode
func (*GetFunctionAnalysisReply_FunctionNode) GetId ¶
func (x *GetFunctionAnalysisReply_FunctionNode) GetId() string
func (*GetFunctionAnalysisReply_FunctionNode) GetName ¶
func (x *GetFunctionAnalysisReply_FunctionNode) GetName() string
func (*GetFunctionAnalysisReply_FunctionNode) GetPackage ¶
func (x *GetFunctionAnalysisReply_FunctionNode) GetPackage() string
func (*GetFunctionAnalysisReply_FunctionNode) ProtoMessage ¶
func (*GetFunctionAnalysisReply_FunctionNode) ProtoMessage()
func (*GetFunctionAnalysisReply_FunctionNode) ProtoReflect ¶
func (x *GetFunctionAnalysisReply_FunctionNode) ProtoReflect() protoreflect.Message
func (*GetFunctionAnalysisReply_FunctionNode) Reset ¶
func (x *GetFunctionAnalysisReply_FunctionNode) Reset()
func (*GetFunctionAnalysisReply_FunctionNode) String ¶
func (x *GetFunctionAnalysisReply_FunctionNode) String() string
type GetFunctionAnalysisReq ¶
type GetFunctionAnalysisReq struct {
FunctionName string `protobuf:"bytes,1,opt,name=functionName,proto3" json:"functionName,omitempty"` // 函数名称
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 查询类型: "caller" 或 "callee"
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 项目路径
// contains filtered or unexported fields
}
获取函数调用关系分析的请求
func (*GetFunctionAnalysisReq) Descriptor
deprecated
func (*GetFunctionAnalysisReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionAnalysisReq.ProtoReflect.Descriptor instead.
func (*GetFunctionAnalysisReq) GetFunctionName ¶
func (x *GetFunctionAnalysisReq) GetFunctionName() string
func (*GetFunctionAnalysisReq) GetPath ¶
func (x *GetFunctionAnalysisReq) GetPath() string
func (*GetFunctionAnalysisReq) GetType ¶
func (x *GetFunctionAnalysisReq) GetType() string
func (*GetFunctionAnalysisReq) ProtoMessage ¶
func (*GetFunctionAnalysisReq) ProtoMessage()
func (*GetFunctionAnalysisReq) ProtoReflect ¶
func (x *GetFunctionAnalysisReq) ProtoReflect() protoreflect.Message
func (*GetFunctionAnalysisReq) Reset ¶
func (x *GetFunctionAnalysisReq) Reset()
func (*GetFunctionAnalysisReq) String ¶
func (x *GetFunctionAnalysisReq) String() string
type GetFunctionCallGraphReply ¶
type GetFunctionCallGraphReply struct {
Nodes []*GetFunctionCallGraphReply_GraphNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // 图节点
Edges []*GetFunctionCallGraphReply_GraphEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"` // 图边
// contains filtered or unexported fields
}
获取函数调用关系图的响应
func (*GetFunctionCallGraphReply) Descriptor
deprecated
func (*GetFunctionCallGraphReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionCallGraphReply.ProtoReflect.Descriptor instead.
func (*GetFunctionCallGraphReply) GetEdges ¶
func (x *GetFunctionCallGraphReply) GetEdges() []*GetFunctionCallGraphReply_GraphEdge
func (*GetFunctionCallGraphReply) GetNodes ¶
func (x *GetFunctionCallGraphReply) GetNodes() []*GetFunctionCallGraphReply_GraphNode
func (*GetFunctionCallGraphReply) ProtoMessage ¶
func (*GetFunctionCallGraphReply) ProtoMessage()
func (*GetFunctionCallGraphReply) ProtoReflect ¶
func (x *GetFunctionCallGraphReply) ProtoReflect() protoreflect.Message
func (*GetFunctionCallGraphReply) Reset ¶
func (x *GetFunctionCallGraphReply) Reset()
func (*GetFunctionCallGraphReply) String ¶
func (x *GetFunctionCallGraphReply) String() string
type GetFunctionCallGraphReply_GraphEdge ¶
type GetFunctionCallGraphReply_GraphEdge struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // 源节点Key
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` // 目标节点Key
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` // 边标签
EdgeType string `protobuf:"bytes,4,opt,name=edge_type,json=edgeType,proto3" json:"edge_type,omitempty"` // 边类型: "caller_to_root", "root_to_callee"
// contains filtered or unexported fields
}
func (*GetFunctionCallGraphReply_GraphEdge) Descriptor
deprecated
func (*GetFunctionCallGraphReply_GraphEdge) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionCallGraphReply_GraphEdge.ProtoReflect.Descriptor instead.
func (*GetFunctionCallGraphReply_GraphEdge) GetEdgeType ¶
func (x *GetFunctionCallGraphReply_GraphEdge) GetEdgeType() string
func (*GetFunctionCallGraphReply_GraphEdge) GetLabel ¶
func (x *GetFunctionCallGraphReply_GraphEdge) GetLabel() string
func (*GetFunctionCallGraphReply_GraphEdge) GetSource ¶
func (x *GetFunctionCallGraphReply_GraphEdge) GetSource() string
func (*GetFunctionCallGraphReply_GraphEdge) GetTarget ¶
func (x *GetFunctionCallGraphReply_GraphEdge) GetTarget() string
func (*GetFunctionCallGraphReply_GraphEdge) ProtoMessage ¶
func (*GetFunctionCallGraphReply_GraphEdge) ProtoMessage()
func (*GetFunctionCallGraphReply_GraphEdge) ProtoReflect ¶
func (x *GetFunctionCallGraphReply_GraphEdge) ProtoReflect() protoreflect.Message
func (*GetFunctionCallGraphReply_GraphEdge) Reset ¶
func (x *GetFunctionCallGraphReply_GraphEdge) Reset()
func (*GetFunctionCallGraphReply_GraphEdge) String ¶
func (x *GetFunctionCallGraphReply_GraphEdge) String() string
type GetFunctionCallGraphReply_GraphNode ¶
type GetFunctionCallGraphReply_GraphNode struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 函数唯一标识符(短格式key)
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 函数名称
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 包名
CallCount int32 `protobuf:"varint,4,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
AvgTime string `protobuf:"bytes,5,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` // 平均耗时
NodeType string `protobuf:"bytes,6,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` // 节点类型: "root", "caller", "callee"
// contains filtered or unexported fields
}
func (*GetFunctionCallGraphReply_GraphNode) Descriptor
deprecated
func (*GetFunctionCallGraphReply_GraphNode) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionCallGraphReply_GraphNode.ProtoReflect.Descriptor instead.
func (*GetFunctionCallGraphReply_GraphNode) GetAvgTime ¶
func (x *GetFunctionCallGraphReply_GraphNode) GetAvgTime() string
func (*GetFunctionCallGraphReply_GraphNode) GetCallCount ¶
func (x *GetFunctionCallGraphReply_GraphNode) GetCallCount() int32
func (*GetFunctionCallGraphReply_GraphNode) GetKey ¶ added in v1.1.6
func (x *GetFunctionCallGraphReply_GraphNode) GetKey() string
func (*GetFunctionCallGraphReply_GraphNode) GetName ¶
func (x *GetFunctionCallGraphReply_GraphNode) GetName() string
func (*GetFunctionCallGraphReply_GraphNode) GetNodeType ¶
func (x *GetFunctionCallGraphReply_GraphNode) GetNodeType() string
func (*GetFunctionCallGraphReply_GraphNode) GetPackage ¶
func (x *GetFunctionCallGraphReply_GraphNode) GetPackage() string
func (*GetFunctionCallGraphReply_GraphNode) ProtoMessage ¶
func (*GetFunctionCallGraphReply_GraphNode) ProtoMessage()
func (*GetFunctionCallGraphReply_GraphNode) ProtoReflect ¶
func (x *GetFunctionCallGraphReply_GraphNode) ProtoReflect() protoreflect.Message
func (*GetFunctionCallGraphReply_GraphNode) Reset ¶
func (x *GetFunctionCallGraphReply_GraphNode) Reset()
func (*GetFunctionCallGraphReply_GraphNode) String ¶
func (x *GetFunctionCallGraphReply_GraphNode) String() string
type GetFunctionCallGraphReq ¶
type GetFunctionCallGraphReq struct {
FunctionKey string `protobuf:"bytes,1,opt,name=function_key,json=functionKey,proto3" json:"function_key,omitempty"` // 函数唯一标识符(短格式key)
Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` // 调用深度,默认为2
Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"` // 方向: "caller"(调用者), "callee"(被调用), "both"(双向)
// contains filtered or unexported fields
}
获取函数调用关系图的请求
func (*GetFunctionCallGraphReq) Descriptor
deprecated
func (*GetFunctionCallGraphReq) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionCallGraphReq.ProtoReflect.Descriptor instead.
func (*GetFunctionCallGraphReq) GetDepth ¶
func (x *GetFunctionCallGraphReq) GetDepth() int32
func (*GetFunctionCallGraphReq) GetDirection ¶
func (x *GetFunctionCallGraphReq) GetDirection() string
func (*GetFunctionCallGraphReq) GetFunctionKey ¶ added in v1.1.6
func (x *GetFunctionCallGraphReq) GetFunctionKey() string
func (*GetFunctionCallGraphReq) ProtoMessage ¶
func (*GetFunctionCallGraphReq) ProtoMessage()
func (*GetFunctionCallGraphReq) ProtoReflect ¶
func (x *GetFunctionCallGraphReq) ProtoReflect() protoreflect.Message
func (*GetFunctionCallGraphReq) Reset ¶
func (x *GetFunctionCallGraphReq) Reset()
func (*GetFunctionCallGraphReq) String ¶
func (x *GetFunctionCallGraphReq) String() string
type GetFunctionDownstreamRequest ¶
type GetFunctionDownstreamRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
FunctionKey string `protobuf:"bytes,2,opt,name=function_key,json=functionKey,proto3" json:"function_key,omitempty"` // 函数唯一标识符(短格式key)
FunctionPackage string `protobuf:"bytes,3,opt,name=function_package,json=functionPackage,proto3" json:"function_package,omitempty"` // 函数包名
Depth int32 `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"` // 查询深度,默认为2
// contains filtered or unexported fields
}
获取函数下游调用关系请求
func (*GetFunctionDownstreamRequest) Descriptor
deprecated
func (*GetFunctionDownstreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionDownstreamRequest.ProtoReflect.Descriptor instead.
func (*GetFunctionDownstreamRequest) GetDbPath ¶
func (x *GetFunctionDownstreamRequest) GetDbPath() string
func (*GetFunctionDownstreamRequest) GetDepth ¶ added in v1.1.6
func (x *GetFunctionDownstreamRequest) GetDepth() int32
func (*GetFunctionDownstreamRequest) GetFunctionKey ¶
func (x *GetFunctionDownstreamRequest) GetFunctionKey() string
func (*GetFunctionDownstreamRequest) GetFunctionPackage ¶ added in v1.1.6
func (x *GetFunctionDownstreamRequest) GetFunctionPackage() string
func (*GetFunctionDownstreamRequest) ProtoMessage ¶
func (*GetFunctionDownstreamRequest) ProtoMessage()
func (*GetFunctionDownstreamRequest) ProtoReflect ¶
func (x *GetFunctionDownstreamRequest) ProtoReflect() protoreflect.Message
func (*GetFunctionDownstreamRequest) Reset ¶
func (x *GetFunctionDownstreamRequest) Reset()
func (*GetFunctionDownstreamRequest) String ¶
func (x *GetFunctionDownstreamRequest) String() string
type GetFunctionDownstreamResponse ¶
type GetFunctionDownstreamResponse struct {
Nodes []*GraphNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // 图节点
Edges []*GraphEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"` // 图边
// contains filtered or unexported fields
}
获取函数下游调用关系响应
func (*GetFunctionDownstreamResponse) Descriptor
deprecated
func (*GetFunctionDownstreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionDownstreamResponse.ProtoReflect.Descriptor instead.
func (*GetFunctionDownstreamResponse) GetEdges ¶
func (x *GetFunctionDownstreamResponse) GetEdges() []*GraphEdge
func (*GetFunctionDownstreamResponse) GetNodes ¶
func (x *GetFunctionDownstreamResponse) GetNodes() []*GraphNode
func (*GetFunctionDownstreamResponse) ProtoMessage ¶
func (*GetFunctionDownstreamResponse) ProtoMessage()
func (*GetFunctionDownstreamResponse) ProtoReflect ¶
func (x *GetFunctionDownstreamResponse) ProtoReflect() protoreflect.Message
func (*GetFunctionDownstreamResponse) Reset ¶
func (x *GetFunctionDownstreamResponse) Reset()
func (*GetFunctionDownstreamResponse) String ¶
func (x *GetFunctionDownstreamResponse) String() string
type GetFunctionFullChainRequest ¶
type GetFunctionFullChainRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
FunctionKey string `protobuf:"bytes,2,opt,name=function_key,json=functionKey,proto3" json:"function_key,omitempty"` // 函数唯一标识符(短格式key)
// contains filtered or unexported fields
}
获取函数全链路调用关系请求
func (*GetFunctionFullChainRequest) Descriptor
deprecated
func (*GetFunctionFullChainRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionFullChainRequest.ProtoReflect.Descriptor instead.
func (*GetFunctionFullChainRequest) GetDbPath ¶
func (x *GetFunctionFullChainRequest) GetDbPath() string
func (*GetFunctionFullChainRequest) GetFunctionKey ¶
func (x *GetFunctionFullChainRequest) GetFunctionKey() string
func (*GetFunctionFullChainRequest) ProtoMessage ¶
func (*GetFunctionFullChainRequest) ProtoMessage()
func (*GetFunctionFullChainRequest) ProtoReflect ¶
func (x *GetFunctionFullChainRequest) ProtoReflect() protoreflect.Message
func (*GetFunctionFullChainRequest) Reset ¶
func (x *GetFunctionFullChainRequest) Reset()
func (*GetFunctionFullChainRequest) String ¶
func (x *GetFunctionFullChainRequest) String() string
type GetFunctionFullChainResponse ¶
type GetFunctionFullChainResponse struct {
Nodes []*GraphNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // 图节点
Edges []*GraphEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"` // 图边
// contains filtered or unexported fields
}
获取函数全链路调用关系响应
func (*GetFunctionFullChainResponse) Descriptor
deprecated
func (*GetFunctionFullChainResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionFullChainResponse.ProtoReflect.Descriptor instead.
func (*GetFunctionFullChainResponse) GetEdges ¶
func (x *GetFunctionFullChainResponse) GetEdges() []*GraphEdge
func (*GetFunctionFullChainResponse) GetNodes ¶
func (x *GetFunctionFullChainResponse) GetNodes() []*GraphNode
func (*GetFunctionFullChainResponse) ProtoMessage ¶
func (*GetFunctionFullChainResponse) ProtoMessage()
func (*GetFunctionFullChainResponse) ProtoReflect ¶
func (x *GetFunctionFullChainResponse) ProtoReflect() protoreflect.Message
func (*GetFunctionFullChainResponse) Reset ¶
func (x *GetFunctionFullChainResponse) Reset()
func (*GetFunctionFullChainResponse) String ¶
func (x *GetFunctionFullChainResponse) String() string
type GetFunctionUpstreamRequest ¶
type GetFunctionUpstreamRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
FunctionKey string `protobuf:"bytes,2,opt,name=function_key,json=functionKey,proto3" json:"function_key,omitempty"` // 函数唯一标识符(短格式key)
FunctionPackage string `protobuf:"bytes,3,opt,name=function_package,json=functionPackage,proto3" json:"function_package,omitempty"` // 函数包名
Depth int32 `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"` // 查询深度,默认为2
// contains filtered or unexported fields
}
获取函数上游调用关系请求
func (*GetFunctionUpstreamRequest) Descriptor
deprecated
func (*GetFunctionUpstreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionUpstreamRequest.ProtoReflect.Descriptor instead.
func (*GetFunctionUpstreamRequest) GetDbPath ¶
func (x *GetFunctionUpstreamRequest) GetDbPath() string
func (*GetFunctionUpstreamRequest) GetDepth ¶ added in v1.1.6
func (x *GetFunctionUpstreamRequest) GetDepth() int32
func (*GetFunctionUpstreamRequest) GetFunctionKey ¶
func (x *GetFunctionUpstreamRequest) GetFunctionKey() string
func (*GetFunctionUpstreamRequest) GetFunctionPackage ¶ added in v1.1.6
func (x *GetFunctionUpstreamRequest) GetFunctionPackage() string
func (*GetFunctionUpstreamRequest) ProtoMessage ¶
func (*GetFunctionUpstreamRequest) ProtoMessage()
func (*GetFunctionUpstreamRequest) ProtoReflect ¶
func (x *GetFunctionUpstreamRequest) ProtoReflect() protoreflect.Message
func (*GetFunctionUpstreamRequest) Reset ¶
func (x *GetFunctionUpstreamRequest) Reset()
func (*GetFunctionUpstreamRequest) String ¶
func (x *GetFunctionUpstreamRequest) String() string
type GetFunctionUpstreamResponse ¶
type GetFunctionUpstreamResponse struct {
Nodes []*GraphNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // 图节点
Edges []*GraphEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"` // 图边
// contains filtered or unexported fields
}
获取函数上游调用关系响应
func (*GetFunctionUpstreamResponse) Descriptor
deprecated
func (*GetFunctionUpstreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionUpstreamResponse.ProtoReflect.Descriptor instead.
func (*GetFunctionUpstreamResponse) GetEdges ¶
func (x *GetFunctionUpstreamResponse) GetEdges() []*GraphEdge
func (*GetFunctionUpstreamResponse) GetNodes ¶
func (x *GetFunctionUpstreamResponse) GetNodes() []*GraphNode
func (*GetFunctionUpstreamResponse) ProtoMessage ¶
func (*GetFunctionUpstreamResponse) ProtoMessage()
func (*GetFunctionUpstreamResponse) ProtoReflect ¶
func (x *GetFunctionUpstreamResponse) ProtoReflect() protoreflect.Message
func (*GetFunctionUpstreamResponse) Reset ¶
func (x *GetFunctionUpstreamResponse) Reset()
func (*GetFunctionUpstreamResponse) String ¶
func (x *GetFunctionUpstreamResponse) String() string
type GetHotFunctionsReply ¶
type GetHotFunctionsReply struct {
Functions []*GetHotFunctionsReply_HotFunction `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` // 热点函数列表
// contains filtered or unexported fields
}
获取热点函数的响应
func (*GetHotFunctionsReply) Descriptor
deprecated
func (*GetHotFunctionsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetHotFunctionsReply.ProtoReflect.Descriptor instead.
func (*GetHotFunctionsReply) GetFunctions ¶
func (x *GetHotFunctionsReply) GetFunctions() []*GetHotFunctionsReply_HotFunction
func (*GetHotFunctionsReply) ProtoMessage ¶
func (*GetHotFunctionsReply) ProtoMessage()
func (*GetHotFunctionsReply) ProtoReflect ¶
func (x *GetHotFunctionsReply) ProtoReflect() protoreflect.Message
func (*GetHotFunctionsReply) Reset ¶
func (x *GetHotFunctionsReply) Reset()
func (*GetHotFunctionsReply) String ¶
func (x *GetHotFunctionsReply) String() string
type GetHotFunctionsReply_HotFunction ¶
type GetHotFunctionsReply_HotFunction struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 函数名称
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` // 包名
CallCount int32 `protobuf:"varint,3,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
TotalTime string `protobuf:"bytes,4,opt,name=total_time,json=totalTime,proto3" json:"total_time,omitempty"` // 总耗时
AvgTime string `protobuf:"bytes,5,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` // 平均耗时
// contains filtered or unexported fields
}
func (*GetHotFunctionsReply_HotFunction) Descriptor
deprecated
func (*GetHotFunctionsReply_HotFunction) Descriptor() ([]byte, []int)
Deprecated: Use GetHotFunctionsReply_HotFunction.ProtoReflect.Descriptor instead.
func (*GetHotFunctionsReply_HotFunction) GetAvgTime ¶
func (x *GetHotFunctionsReply_HotFunction) GetAvgTime() string
func (*GetHotFunctionsReply_HotFunction) GetCallCount ¶
func (x *GetHotFunctionsReply_HotFunction) GetCallCount() int32
func (*GetHotFunctionsReply_HotFunction) GetName ¶
func (x *GetHotFunctionsReply_HotFunction) GetName() string
func (*GetHotFunctionsReply_HotFunction) GetPackage ¶
func (x *GetHotFunctionsReply_HotFunction) GetPackage() string
func (*GetHotFunctionsReply_HotFunction) GetTotalTime ¶
func (x *GetHotFunctionsReply_HotFunction) GetTotalTime() string
func (*GetHotFunctionsReply_HotFunction) ProtoMessage ¶
func (*GetHotFunctionsReply_HotFunction) ProtoMessage()
func (*GetHotFunctionsReply_HotFunction) ProtoReflect ¶
func (x *GetHotFunctionsReply_HotFunction) ProtoReflect() protoreflect.Message
func (*GetHotFunctionsReply_HotFunction) Reset ¶
func (x *GetHotFunctionsReply_HotFunction) Reset()
func (*GetHotFunctionsReply_HotFunction) String ¶
func (x *GetHotFunctionsReply_HotFunction) String() string
type GetHotFunctionsReq ¶
type GetHotFunctionsReq struct {
SortBy string `protobuf:"bytes,1,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // 排序方式: "calls" 或 "time"
// contains filtered or unexported fields
}
获取热点函数的请求
func (*GetHotFunctionsReq) Descriptor
deprecated
func (*GetHotFunctionsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetHotFunctionsReq.ProtoReflect.Descriptor instead.
func (*GetHotFunctionsReq) GetSortBy ¶
func (x *GetHotFunctionsReq) GetSortBy() string
func (*GetHotFunctionsReq) ProtoMessage ¶
func (*GetHotFunctionsReq) ProtoMessage()
func (*GetHotFunctionsReq) ProtoReflect ¶
func (x *GetHotFunctionsReq) ProtoReflect() protoreflect.Message
func (*GetHotFunctionsReq) Reset ¶
func (x *GetHotFunctionsReq) Reset()
func (*GetHotFunctionsReq) String ¶
func (x *GetHotFunctionsReq) String() string
type GetHotFunctionsRequest ¶
type GetHotFunctionsRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // 页码
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页大小
// contains filtered or unexported fields
}
分页获取热点函数请求
func (*GetHotFunctionsRequest) Descriptor
deprecated
func (*GetHotFunctionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHotFunctionsRequest.ProtoReflect.Descriptor instead.
func (*GetHotFunctionsRequest) GetDbPath ¶
func (x *GetHotFunctionsRequest) GetDbPath() string
func (*GetHotFunctionsRequest) GetPage ¶
func (x *GetHotFunctionsRequest) GetPage() int32
func (*GetHotFunctionsRequest) GetPageSize ¶
func (x *GetHotFunctionsRequest) GetPageSize() int32
func (*GetHotFunctionsRequest) ProtoMessage ¶
func (*GetHotFunctionsRequest) ProtoMessage()
func (*GetHotFunctionsRequest) ProtoReflect ¶
func (x *GetHotFunctionsRequest) ProtoReflect() protoreflect.Message
func (*GetHotFunctionsRequest) Reset ¶
func (x *GetHotFunctionsRequest) Reset()
func (*GetHotFunctionsRequest) String ¶
func (x *GetHotFunctionsRequest) String() string
type GetHotFunctionsResponse ¶
type GetHotFunctionsResponse struct {
Functions []*HotFunction `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` // 热点函数列表
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总记录数
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` // 当前页码
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页大小
PageCount int32 `protobuf:"varint,5,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"` // 总页数
// contains filtered or unexported fields
}
分页获取热点函数响应
func (*GetHotFunctionsResponse) Descriptor
deprecated
func (*GetHotFunctionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHotFunctionsResponse.ProtoReflect.Descriptor instead.
func (*GetHotFunctionsResponse) GetFunctions ¶
func (x *GetHotFunctionsResponse) GetFunctions() []*HotFunction
func (*GetHotFunctionsResponse) GetPage ¶
func (x *GetHotFunctionsResponse) GetPage() int32
func (*GetHotFunctionsResponse) GetPageCount ¶
func (x *GetHotFunctionsResponse) GetPageCount() int32
func (*GetHotFunctionsResponse) GetPageSize ¶
func (x *GetHotFunctionsResponse) GetPageSize() int32
func (*GetHotFunctionsResponse) GetTotal ¶
func (x *GetHotFunctionsResponse) GetTotal() int32
func (*GetHotFunctionsResponse) ProtoMessage ¶
func (*GetHotFunctionsResponse) ProtoMessage()
func (*GetHotFunctionsResponse) ProtoReflect ¶
func (x *GetHotFunctionsResponse) ProtoReflect() protoreflect.Message
func (*GetHotFunctionsResponse) Reset ¶
func (x *GetHotFunctionsResponse) Reset()
func (*GetHotFunctionsResponse) String ¶
func (x *GetHotFunctionsResponse) String() string
type GetPackageDependenciesRequest ¶
type GetPackageDependenciesRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // 页码
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页大小
// contains filtered or unexported fields
}
分页获取包依赖关系请求
func (*GetPackageDependenciesRequest) Descriptor
deprecated
func (*GetPackageDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPackageDependenciesRequest.ProtoReflect.Descriptor instead.
func (*GetPackageDependenciesRequest) GetDbPath ¶
func (x *GetPackageDependenciesRequest) GetDbPath() string
func (*GetPackageDependenciesRequest) GetPage ¶
func (x *GetPackageDependenciesRequest) GetPage() int32
func (*GetPackageDependenciesRequest) GetPageSize ¶
func (x *GetPackageDependenciesRequest) GetPageSize() int32
func (*GetPackageDependenciesRequest) ProtoMessage ¶
func (*GetPackageDependenciesRequest) ProtoMessage()
func (*GetPackageDependenciesRequest) ProtoReflect ¶
func (x *GetPackageDependenciesRequest) ProtoReflect() protoreflect.Message
func (*GetPackageDependenciesRequest) Reset ¶
func (x *GetPackageDependenciesRequest) Reset()
func (*GetPackageDependenciesRequest) String ¶
func (x *GetPackageDependenciesRequest) String() string
type GetPackageDependenciesResponse ¶
type GetPackageDependenciesResponse struct {
Dependencies []*PackageDependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // 包依赖关系列表
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总记录数
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` // 当前页码
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页大小
PageCount int32 `protobuf:"varint,5,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"` // 总页数
// contains filtered or unexported fields
}
分页获取包依赖关系响应
func (*GetPackageDependenciesResponse) Descriptor
deprecated
func (*GetPackageDependenciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPackageDependenciesResponse.ProtoReflect.Descriptor instead.
func (*GetPackageDependenciesResponse) GetDependencies ¶
func (x *GetPackageDependenciesResponse) GetDependencies() []*PackageDependency
func (*GetPackageDependenciesResponse) GetPage ¶
func (x *GetPackageDependenciesResponse) GetPage() int32
func (*GetPackageDependenciesResponse) GetPageCount ¶
func (x *GetPackageDependenciesResponse) GetPageCount() int32
func (*GetPackageDependenciesResponse) GetPageSize ¶
func (x *GetPackageDependenciesResponse) GetPageSize() int32
func (*GetPackageDependenciesResponse) GetTotal ¶
func (x *GetPackageDependenciesResponse) GetTotal() int32
func (*GetPackageDependenciesResponse) ProtoMessage ¶
func (*GetPackageDependenciesResponse) ProtoMessage()
func (*GetPackageDependenciesResponse) ProtoReflect ¶
func (x *GetPackageDependenciesResponse) ProtoReflect() protoreflect.Message
func (*GetPackageDependenciesResponse) Reset ¶
func (x *GetPackageDependenciesResponse) Reset()
func (*GetPackageDependenciesResponse) String ¶
func (x *GetPackageDependenciesResponse) String() string
type GetStaticDbFilesRequest ¶
type GetStaticDbFilesRequest struct {
// contains filtered or unexported fields
}
获取静态分析数据库文件列表请求
func (*GetStaticDbFilesRequest) Descriptor
deprecated
func (*GetStaticDbFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStaticDbFilesRequest.ProtoReflect.Descriptor instead.
func (*GetStaticDbFilesRequest) ProtoMessage ¶
func (*GetStaticDbFilesRequest) ProtoMessage()
func (*GetStaticDbFilesRequest) ProtoReflect ¶
func (x *GetStaticDbFilesRequest) ProtoReflect() protoreflect.Message
func (*GetStaticDbFilesRequest) Reset ¶
func (x *GetStaticDbFilesRequest) Reset()
func (*GetStaticDbFilesRequest) String ¶
func (x *GetStaticDbFilesRequest) String() string
type GetStaticDbFilesResponse ¶
type GetStaticDbFilesResponse struct {
Files []*DbFileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
// contains filtered or unexported fields
}
获取静态分析数据库文件列表响应
func (*GetStaticDbFilesResponse) Descriptor
deprecated
func (*GetStaticDbFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStaticDbFilesResponse.ProtoReflect.Descriptor instead.
func (*GetStaticDbFilesResponse) GetFiles ¶
func (x *GetStaticDbFilesResponse) GetFiles() []*DbFileInfo
func (*GetStaticDbFilesResponse) ProtoMessage ¶
func (*GetStaticDbFilesResponse) ProtoMessage()
func (*GetStaticDbFilesResponse) ProtoReflect ¶
func (x *GetStaticDbFilesResponse) ProtoReflect() protoreflect.Message
func (*GetStaticDbFilesResponse) Reset ¶
func (x *GetStaticDbFilesResponse) Reset()
func (*GetStaticDbFilesResponse) String ¶
func (x *GetStaticDbFilesResponse) String() string
type GetTreeGraphReply ¶ added in v1.1.2
type GetTreeGraphReply struct {
Root *TreeNode `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` // 根节点
// contains filtered or unexported fields
}
获取树状图响应
func (*GetTreeGraphReply) Descriptor
deprecated
added in
v1.1.2
func (*GetTreeGraphReply) Descriptor() ([]byte, []int)
Deprecated: Use GetTreeGraphReply.ProtoReflect.Descriptor instead.
func (*GetTreeGraphReply) GetRoot ¶ added in v1.1.2
func (x *GetTreeGraphReply) GetRoot() *TreeNode
func (*GetTreeGraphReply) ProtoMessage ¶ added in v1.1.2
func (*GetTreeGraphReply) ProtoMessage()
func (*GetTreeGraphReply) ProtoReflect ¶ added in v1.1.2
func (x *GetTreeGraphReply) ProtoReflect() protoreflect.Message
func (*GetTreeGraphReply) Reset ¶ added in v1.1.2
func (x *GetTreeGraphReply) Reset()
func (*GetTreeGraphReply) String ¶ added in v1.1.2
func (x *GetTreeGraphReply) String() string
type GetTreeGraphReq ¶ added in v1.1.2
type GetTreeGraphReq struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
FunctionKey string `protobuf:"bytes,2,opt,name=function_key,json=functionKey,proto3" json:"function_key,omitempty"` // 函数唯一标识符(短格式key)
// contains filtered or unexported fields
}
获取树状图请求
func (*GetTreeGraphReq) Descriptor
deprecated
added in
v1.1.2
func (*GetTreeGraphReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTreeGraphReq.ProtoReflect.Descriptor instead.
func (*GetTreeGraphReq) GetDbPath ¶ added in v1.1.2
func (x *GetTreeGraphReq) GetDbPath() string
func (*GetTreeGraphReq) GetFunctionKey ¶ added in v1.1.6
func (x *GetTreeGraphReq) GetFunctionKey() string
func (*GetTreeGraphReq) ProtoMessage ¶ added in v1.1.2
func (*GetTreeGraphReq) ProtoMessage()
func (*GetTreeGraphReq) ProtoReflect ¶ added in v1.1.2
func (x *GetTreeGraphReq) ProtoReflect() protoreflect.Message
func (*GetTreeGraphReq) Reset ¶ added in v1.1.2
func (x *GetTreeGraphReq) Reset()
func (*GetTreeGraphReq) String ¶ added in v1.1.2
func (x *GetTreeGraphReq) String() string
type GitLabRepository ¶
type GitLabRepository struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 仓库ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 仓库名称
FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` // 完整名称
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // 描述
DefaultBranch string `protobuf:"bytes,5,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"` // 默认分支
WebUrl string `protobuf:"bytes,6,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"` // Web URL
SshUrl string `protobuf:"bytes,7,opt,name=ssh_url,json=sshUrl,proto3" json:"ssh_url,omitempty"` // SSH URL
HttpUrl string `protobuf:"bytes,8,opt,name=http_url,json=httpUrl,proto3" json:"http_url,omitempty"` // HTTP URL
Visibility string `protobuf:"bytes,9,opt,name=visibility,proto3" json:"visibility,omitempty"` // 可见性
LastActivity string `protobuf:"bytes,10,opt,name=last_activity,json=lastActivity,proto3" json:"last_activity,omitempty"` // 最后活动时间
// contains filtered or unexported fields
}
GitLab仓库信息
func (*GitLabRepository) Descriptor
deprecated
func (*GitLabRepository) Descriptor() ([]byte, []int)
Deprecated: Use GitLabRepository.ProtoReflect.Descriptor instead.
func (*GitLabRepository) GetDefaultBranch ¶
func (x *GitLabRepository) GetDefaultBranch() string
func (*GitLabRepository) GetDescription ¶
func (x *GitLabRepository) GetDescription() string
func (*GitLabRepository) GetFullName ¶
func (x *GitLabRepository) GetFullName() string
func (*GitLabRepository) GetHttpUrl ¶
func (x *GitLabRepository) GetHttpUrl() string
func (*GitLabRepository) GetId ¶
func (x *GitLabRepository) GetId() int32
func (*GitLabRepository) GetLastActivity ¶
func (x *GitLabRepository) GetLastActivity() string
func (*GitLabRepository) GetName ¶
func (x *GitLabRepository) GetName() string
func (*GitLabRepository) GetSshUrl ¶
func (x *GitLabRepository) GetSshUrl() string
func (*GitLabRepository) GetVisibility ¶
func (x *GitLabRepository) GetVisibility() string
func (*GitLabRepository) GetWebUrl ¶
func (x *GitLabRepository) GetWebUrl() string
func (*GitLabRepository) ProtoMessage ¶
func (*GitLabRepository) ProtoMessage()
func (*GitLabRepository) ProtoReflect ¶
func (x *GitLabRepository) ProtoReflect() protoreflect.Message
func (*GitLabRepository) Reset ¶
func (x *GitLabRepository) Reset()
func (*GitLabRepository) String ¶
func (x *GitLabRepository) String() string
type GraphEdge ¶
type GraphEdge struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // 源节点Key
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` // 目标节点Key
Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` // 边权重
// contains filtered or unexported fields
}
图边
func (*GraphEdge) Descriptor
deprecated
func (*GraphEdge) ProtoMessage ¶
func (*GraphEdge) ProtoMessage()
func (*GraphEdge) ProtoReflect ¶
func (x *GraphEdge) ProtoReflect() protoreflect.Message
type GraphNode ¶
type GraphNode struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 函数唯一标识符(短格式key)
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 函数名称
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 包名
CallCount int32 `protobuf:"varint,4,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
// contains filtered or unexported fields
}
图节点
func (*GraphNode) Descriptor
deprecated
func (*GraphNode) GetCallCount ¶
func (*GraphNode) GetPackage ¶
func (*GraphNode) ProtoMessage ¶
func (*GraphNode) ProtoMessage()
func (*GraphNode) ProtoReflect ¶
func (x *GraphNode) ProtoReflect() protoreflect.Message
type HotFunction ¶
type HotFunction struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 函数唯一标识
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 函数名称
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 包名
CallCount int32 `protobuf:"varint,4,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
// contains filtered or unexported fields
}
热点函数
func (*HotFunction) Descriptor
deprecated
func (*HotFunction) Descriptor() ([]byte, []int)
Deprecated: Use HotFunction.ProtoReflect.Descriptor instead.
func (*HotFunction) GetCallCount ¶
func (x *HotFunction) GetCallCount() int32
func (*HotFunction) GetKey ¶
func (x *HotFunction) GetKey() string
func (*HotFunction) GetName ¶
func (x *HotFunction) GetName() string
func (*HotFunction) GetPackage ¶
func (x *HotFunction) GetPackage() string
func (*HotFunction) ProtoMessage ¶
func (*HotFunction) ProtoMessage()
func (*HotFunction) ProtoReflect ¶
func (x *HotFunction) ProtoReflect() protoreflect.Message
func (*HotFunction) Reset ¶
func (x *HotFunction) Reset()
func (*HotFunction) String ¶
func (x *HotFunction) String() string
type ListGitLabRepositoriesRequest ¶
type ListGitLabRepositoriesRequest struct {
// contains filtered or unexported fields
}
获取GitLab仓库列表请求
func (*ListGitLabRepositoriesRequest) Descriptor
deprecated
func (*ListGitLabRepositoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGitLabRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*ListGitLabRepositoriesRequest) ProtoMessage ¶
func (*ListGitLabRepositoriesRequest) ProtoMessage()
func (*ListGitLabRepositoriesRequest) ProtoReflect ¶
func (x *ListGitLabRepositoriesRequest) ProtoReflect() protoreflect.Message
func (*ListGitLabRepositoriesRequest) Reset ¶
func (x *ListGitLabRepositoriesRequest) Reset()
func (*ListGitLabRepositoriesRequest) String ¶
func (x *ListGitLabRepositoriesRequest) String() string
type ListGitLabRepositoriesResponse ¶
type ListGitLabRepositoriesResponse struct {
Repositories []*GitLabRepository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// contains filtered or unexported fields
}
获取GitLab仓库列表响应
func (*ListGitLabRepositoriesResponse) Descriptor
deprecated
func (*ListGitLabRepositoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGitLabRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*ListGitLabRepositoriesResponse) GetRepositories ¶
func (x *ListGitLabRepositoriesResponse) GetRepositories() []*GitLabRepository
func (*ListGitLabRepositoriesResponse) ProtoMessage ¶
func (*ListGitLabRepositoriesResponse) ProtoMessage()
func (*ListGitLabRepositoriesResponse) ProtoReflect ¶
func (x *ListGitLabRepositoriesResponse) ProtoReflect() protoreflect.Message
func (*ListGitLabRepositoriesResponse) Reset ¶
func (x *ListGitLabRepositoriesResponse) Reset()
func (*ListGitLabRepositoriesResponse) String ¶
func (x *ListGitLabRepositoriesResponse) String() string
type PackageDependency ¶
type PackageDependency struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
包依赖关系
func (*PackageDependency) Descriptor
deprecated
func (*PackageDependency) Descriptor() ([]byte, []int)
Deprecated: Use PackageDependency.ProtoReflect.Descriptor instead.
func (*PackageDependency) GetCount ¶
func (x *PackageDependency) GetCount() int32
func (*PackageDependency) GetSource ¶
func (x *PackageDependency) GetSource() string
func (*PackageDependency) GetTarget ¶
func (x *PackageDependency) GetTarget() string
func (*PackageDependency) ProtoMessage ¶
func (*PackageDependency) ProtoMessage()
func (*PackageDependency) ProtoReflect ¶
func (x *PackageDependency) ProtoReflect() protoreflect.Message
func (*PackageDependency) Reset ¶
func (x *PackageDependency) Reset()
func (*PackageDependency) String ¶
func (x *PackageDependency) String() string
type SearchFunctionsRequest ¶
type SearchFunctionsRequest struct {
DbPath string `protobuf:"bytes,1,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"` // 数据库路径
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // 搜索关键词
// contains filtered or unexported fields
}
模糊搜索函数请求
func (*SearchFunctionsRequest) Descriptor
deprecated
func (*SearchFunctionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchFunctionsRequest.ProtoReflect.Descriptor instead.
func (*SearchFunctionsRequest) GetDbPath ¶
func (x *SearchFunctionsRequest) GetDbPath() string
func (*SearchFunctionsRequest) GetQuery ¶
func (x *SearchFunctionsRequest) GetQuery() string
func (*SearchFunctionsRequest) ProtoMessage ¶
func (*SearchFunctionsRequest) ProtoMessage()
func (*SearchFunctionsRequest) ProtoReflect ¶
func (x *SearchFunctionsRequest) ProtoReflect() protoreflect.Message
func (*SearchFunctionsRequest) Reset ¶
func (x *SearchFunctionsRequest) Reset()
func (*SearchFunctionsRequest) String ¶
func (x *SearchFunctionsRequest) String() string
type SearchFunctionsResponse ¶
type SearchFunctionsResponse struct {
Functions []*FunctionInfo `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` // 匹配的函数列表
// contains filtered or unexported fields
}
模糊搜索函数响应
func (*SearchFunctionsResponse) Descriptor
deprecated
func (*SearchFunctionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchFunctionsResponse.ProtoReflect.Descriptor instead.
func (*SearchFunctionsResponse) GetFunctions ¶
func (x *SearchFunctionsResponse) GetFunctions() []*FunctionInfo
func (*SearchFunctionsResponse) ProtoMessage ¶
func (*SearchFunctionsResponse) ProtoMessage()
func (*SearchFunctionsResponse) ProtoReflect ¶
func (x *SearchFunctionsResponse) ProtoReflect() protoreflect.Message
func (*SearchFunctionsResponse) Reset ¶
func (x *SearchFunctionsResponse) Reset()
func (*SearchFunctionsResponse) String ¶
func (x *SearchFunctionsResponse) String() string
type StaticAnalysisClient ¶
type StaticAnalysisClient interface {
// 获取静态分析数据库文件列表
GetStaticDbFiles(ctx context.Context, in *GetStaticDbFilesRequest, opts ...grpc.CallOption) (*GetStaticDbFilesResponse, error)
// 获取分析任务状态
GetAnalysisTaskStatus(ctx context.Context, in *GetAnalysisTaskStatusRequest, opts ...grpc.CallOption) (*GetAnalysisTaskStatusResponse, error)
// 分析项目路径
AnalyzeProjectPath(ctx context.Context, in *AnalyzeProjectPathRequest, opts ...grpc.CallOption) (*AnalyzeProjectPathResponse, error)
// 分析数据库文件
AnalyzeDbFile(ctx context.Context, in *AnalyzeDbFileRequest, opts ...grpc.CallOption) (*AnalyzeDbFileResponse, error)
// 获取函数调用关系分析
GetFunctionAnalysis(ctx context.Context, in *GetFunctionAnalysisReq, opts ...grpc.CallOption) (*GetFunctionAnalysisReply, error)
// 获取函数调用关系图
GetFunctionCallGraph(ctx context.Context, in *GetFunctionCallGraphReq, opts ...grpc.CallOption) (*GetFunctionCallGraphReply, error)
// 获取GitLab仓库列表
ListGitLabRepositories(ctx context.Context, in *ListGitLabRepositoriesRequest, opts ...grpc.CallOption) (*ListGitLabRepositoriesResponse, error)
// 克隆GitLab仓库
CloneGitLabRepository(ctx context.Context, in *CloneGitLabRepositoryRequest, opts ...grpc.CallOption) (*CloneGitLabRepositoryResponse, error)
// 分页获取包依赖关系
GetPackageDependencies(ctx context.Context, in *GetPackageDependenciesRequest, opts ...grpc.CallOption) (*GetPackageDependenciesResponse, error)
// 分页获取热点函数
GetHotFunctions(ctx context.Context, in *GetHotFunctionsRequest, opts ...grpc.CallOption) (*GetHotFunctionsResponse, error)
// 模糊搜索函数
SearchFunctions(ctx context.Context, in *SearchFunctionsRequest, opts ...grpc.CallOption) (*SearchFunctionsResponse, error)
// 获取函数上游调用关系
GetFunctionUpstream(ctx context.Context, in *GetFunctionUpstreamRequest, opts ...grpc.CallOption) (*GetFunctionUpstreamResponse, error)
// 获取函数下游调用关系
GetFunctionDownstream(ctx context.Context, in *GetFunctionDownstreamRequest, opts ...grpc.CallOption) (*GetFunctionDownstreamResponse, error)
// 获取函数全链路调用关系
GetFunctionFullChain(ctx context.Context, in *GetFunctionFullChainRequest, opts ...grpc.CallOption) (*GetFunctionFullChainResponse, error)
// 获取静态分析树状图数据
GetTreeGraph(ctx context.Context, in *GetTreeGraphReq, opts ...grpc.CallOption) (*GetTreeGraphReply, error)
}
StaticAnalysisClient is the client API for StaticAnalysis service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
静态分析服务定义
func NewStaticAnalysisClient ¶
func NewStaticAnalysisClient(cc grpc.ClientConnInterface) StaticAnalysisClient
type StaticAnalysisHTTPClient ¶
type StaticAnalysisHTTPClient interface {
AnalyzeDbFile(ctx context.Context, req *AnalyzeDbFileRequest, opts ...http.CallOption) (rsp *AnalyzeDbFileResponse, err error)
AnalyzeProjectPath(ctx context.Context, req *AnalyzeProjectPathRequest, opts ...http.CallOption) (rsp *AnalyzeProjectPathResponse, err error)
GetFunctionAnalysis(ctx context.Context, req *GetFunctionAnalysisReq, opts ...http.CallOption) (rsp *GetFunctionAnalysisReply, err error)
GetFunctionCallGraph(ctx context.Context, req *GetFunctionCallGraphReq, opts ...http.CallOption) (rsp *GetFunctionCallGraphReply, err error)
GetHotFunctions(ctx context.Context, req *GetHotFunctionsReq, opts ...http.CallOption) (rsp *GetHotFunctionsReply, err error)
GetStaticDbFiles(ctx context.Context, req *GetStaticDbFilesRequest, opts ...http.CallOption) (rsp *GetStaticDbFilesResponse, err error)
}
func NewStaticAnalysisHTTPClient ¶
func NewStaticAnalysisHTTPClient(client *http.Client) StaticAnalysisHTTPClient
type StaticAnalysisHTTPClientImpl ¶
type StaticAnalysisHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*StaticAnalysisHTTPClientImpl) AnalyzeDbFile ¶
func (c *StaticAnalysisHTTPClientImpl) AnalyzeDbFile(ctx context.Context, in *AnalyzeDbFileRequest, opts ...http.CallOption) (*AnalyzeDbFileResponse, error)
func (*StaticAnalysisHTTPClientImpl) AnalyzeProjectPath ¶
func (c *StaticAnalysisHTTPClientImpl) AnalyzeProjectPath(ctx context.Context, in *AnalyzeProjectPathRequest, opts ...http.CallOption) (*AnalyzeProjectPathResponse, error)
func (*StaticAnalysisHTTPClientImpl) GetFunctionAnalysis ¶
func (c *StaticAnalysisHTTPClientImpl) GetFunctionAnalysis(ctx context.Context, in *GetFunctionAnalysisReq, opts ...http.CallOption) (*GetFunctionAnalysisReply, error)
func (*StaticAnalysisHTTPClientImpl) GetFunctionCallGraph ¶
func (c *StaticAnalysisHTTPClientImpl) GetFunctionCallGraph(ctx context.Context, in *GetFunctionCallGraphReq, opts ...http.CallOption) (*GetFunctionCallGraphReply, error)
func (*StaticAnalysisHTTPClientImpl) GetHotFunctions ¶
func (c *StaticAnalysisHTTPClientImpl) GetHotFunctions(ctx context.Context, in *GetHotFunctionsReq, opts ...http.CallOption) (*GetHotFunctionsReply, error)
func (*StaticAnalysisHTTPClientImpl) GetStaticDbFiles ¶
func (c *StaticAnalysisHTTPClientImpl) GetStaticDbFiles(ctx context.Context, in *GetStaticDbFilesRequest, opts ...http.CallOption) (*GetStaticDbFilesResponse, error)
type StaticAnalysisHTTPServer ¶
type StaticAnalysisHTTPServer interface {
// AnalyzeDbFile 分析指定数据库文件
AnalyzeDbFile(context.Context, *AnalyzeDbFileRequest) (*AnalyzeDbFileResponse, error)
// AnalyzeProjectPath 分析指定路径的项目并生成callgraph
AnalyzeProjectPath(context.Context, *AnalyzeProjectPathRequest) (*AnalyzeProjectPathResponse, error)
// GetFunctionAnalysis 获取函数调用关系分析
GetFunctionAnalysis(context.Context, *GetFunctionAnalysisReq) (*GetFunctionAnalysisReply, error)
// GetFunctionCallGraph 获取函数调用关系图
GetFunctionCallGraph(context.Context, *GetFunctionCallGraphReq) (*GetFunctionCallGraphReply, error)
// GetHotFunctions 获取热点函数分析数据
GetHotFunctions(context.Context, *GetHotFunctionsReq) (*GetHotFunctionsReply, error)
// GetStaticDbFiles 获取静态分析数据库文件列表
GetStaticDbFiles(context.Context, *GetStaticDbFilesRequest) (*GetStaticDbFilesResponse, error)
}
type StaticAnalysisServer ¶
type StaticAnalysisServer interface {
// 获取静态分析数据库文件列表
GetStaticDbFiles(context.Context, *GetStaticDbFilesRequest) (*GetStaticDbFilesResponse, error)
// 获取分析任务状态
GetAnalysisTaskStatus(context.Context, *GetAnalysisTaskStatusRequest) (*GetAnalysisTaskStatusResponse, error)
// 分析项目路径
AnalyzeProjectPath(context.Context, *AnalyzeProjectPathRequest) (*AnalyzeProjectPathResponse, error)
// 分析数据库文件
AnalyzeDbFile(context.Context, *AnalyzeDbFileRequest) (*AnalyzeDbFileResponse, error)
// 获取函数调用关系分析
GetFunctionAnalysis(context.Context, *GetFunctionAnalysisReq) (*GetFunctionAnalysisReply, error)
// 获取函数调用关系图
GetFunctionCallGraph(context.Context, *GetFunctionCallGraphReq) (*GetFunctionCallGraphReply, error)
// 获取GitLab仓库列表
ListGitLabRepositories(context.Context, *ListGitLabRepositoriesRequest) (*ListGitLabRepositoriesResponse, error)
// 克隆GitLab仓库
CloneGitLabRepository(context.Context, *CloneGitLabRepositoryRequest) (*CloneGitLabRepositoryResponse, error)
// 分页获取包依赖关系
GetPackageDependencies(context.Context, *GetPackageDependenciesRequest) (*GetPackageDependenciesResponse, error)
// 分页获取热点函数
GetHotFunctions(context.Context, *GetHotFunctionsRequest) (*GetHotFunctionsResponse, error)
// 模糊搜索函数
SearchFunctions(context.Context, *SearchFunctionsRequest) (*SearchFunctionsResponse, error)
// 获取函数上游调用关系
GetFunctionUpstream(context.Context, *GetFunctionUpstreamRequest) (*GetFunctionUpstreamResponse, error)
// 获取函数下游调用关系
GetFunctionDownstream(context.Context, *GetFunctionDownstreamRequest) (*GetFunctionDownstreamResponse, error)
// 获取函数全链路调用关系
GetFunctionFullChain(context.Context, *GetFunctionFullChainRequest) (*GetFunctionFullChainResponse, error)
// 获取静态分析树状图数据
GetTreeGraph(context.Context, *GetTreeGraphReq) (*GetTreeGraphReply, error)
// contains filtered or unexported methods
}
StaticAnalysisServer is the server API for StaticAnalysis service. All implementations must embed UnimplementedStaticAnalysisServer for forward compatibility.
静态分析服务定义
type TreeNode ¶ added in v1.1.2
type TreeNode struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 节点名称
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // 值,只在tooltip中显示
Collapsed bool `protobuf:"varint,3,opt,name=collapsed,proto3" json:"collapsed,omitempty"` // 是否默认折叠
Children []*TreeNode `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"` // 子节点
// contains filtered or unexported fields
}
树状图节点
func (*TreeNode) Descriptor
deprecated
added in
v1.1.2
func (*TreeNode) GetChildren ¶ added in v1.1.2
func (*TreeNode) GetCollapsed ¶ added in v1.1.2
func (*TreeNode) ProtoMessage ¶ added in v1.1.2
func (*TreeNode) ProtoMessage()
func (*TreeNode) ProtoReflect ¶ added in v1.1.2
func (x *TreeNode) ProtoReflect() protoreflect.Message
type UnimplementedStaticAnalysisServer ¶
type UnimplementedStaticAnalysisServer struct{}
UnimplementedStaticAnalysisServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStaticAnalysisServer) AnalyzeDbFile ¶
func (UnimplementedStaticAnalysisServer) AnalyzeDbFile(context.Context, *AnalyzeDbFileRequest) (*AnalyzeDbFileResponse, error)
func (UnimplementedStaticAnalysisServer) AnalyzeProjectPath ¶
func (UnimplementedStaticAnalysisServer) AnalyzeProjectPath(context.Context, *AnalyzeProjectPathRequest) (*AnalyzeProjectPathResponse, error)
func (UnimplementedStaticAnalysisServer) CloneGitLabRepository ¶
func (UnimplementedStaticAnalysisServer) CloneGitLabRepository(context.Context, *CloneGitLabRepositoryRequest) (*CloneGitLabRepositoryResponse, error)
func (UnimplementedStaticAnalysisServer) GetAnalysisTaskStatus ¶
func (UnimplementedStaticAnalysisServer) GetAnalysisTaskStatus(context.Context, *GetAnalysisTaskStatusRequest) (*GetAnalysisTaskStatusResponse, error)
func (UnimplementedStaticAnalysisServer) GetFunctionAnalysis ¶
func (UnimplementedStaticAnalysisServer) GetFunctionAnalysis(context.Context, *GetFunctionAnalysisReq) (*GetFunctionAnalysisReply, error)
func (UnimplementedStaticAnalysisServer) GetFunctionCallGraph ¶
func (UnimplementedStaticAnalysisServer) GetFunctionCallGraph(context.Context, *GetFunctionCallGraphReq) (*GetFunctionCallGraphReply, error)
func (UnimplementedStaticAnalysisServer) GetFunctionDownstream ¶
func (UnimplementedStaticAnalysisServer) GetFunctionDownstream(context.Context, *GetFunctionDownstreamRequest) (*GetFunctionDownstreamResponse, error)
func (UnimplementedStaticAnalysisServer) GetFunctionFullChain ¶
func (UnimplementedStaticAnalysisServer) GetFunctionFullChain(context.Context, *GetFunctionFullChainRequest) (*GetFunctionFullChainResponse, error)
func (UnimplementedStaticAnalysisServer) GetFunctionUpstream ¶
func (UnimplementedStaticAnalysisServer) GetFunctionUpstream(context.Context, *GetFunctionUpstreamRequest) (*GetFunctionUpstreamResponse, error)
func (UnimplementedStaticAnalysisServer) GetHotFunctions ¶
func (UnimplementedStaticAnalysisServer) GetHotFunctions(context.Context, *GetHotFunctionsRequest) (*GetHotFunctionsResponse, error)
func (UnimplementedStaticAnalysisServer) GetPackageDependencies ¶
func (UnimplementedStaticAnalysisServer) GetPackageDependencies(context.Context, *GetPackageDependenciesRequest) (*GetPackageDependenciesResponse, error)
func (UnimplementedStaticAnalysisServer) GetStaticDbFiles ¶
func (UnimplementedStaticAnalysisServer) GetStaticDbFiles(context.Context, *GetStaticDbFilesRequest) (*GetStaticDbFilesResponse, error)
func (UnimplementedStaticAnalysisServer) GetTreeGraph ¶ added in v1.1.2
func (UnimplementedStaticAnalysisServer) GetTreeGraph(context.Context, *GetTreeGraphReq) (*GetTreeGraphReply, error)
func (UnimplementedStaticAnalysisServer) ListGitLabRepositories ¶
func (UnimplementedStaticAnalysisServer) ListGitLabRepositories(context.Context, *ListGitLabRepositoriesRequest) (*ListGitLabRepositoriesResponse, error)
func (UnimplementedStaticAnalysisServer) SearchFunctions ¶
func (UnimplementedStaticAnalysisServer) SearchFunctions(context.Context, *SearchFunctionsRequest) (*SearchFunctionsResponse, error)
type UnsafeStaticAnalysisServer ¶
type UnsafeStaticAnalysisServer interface {
// contains filtered or unexported methods
}
UnsafeStaticAnalysisServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StaticAnalysisServer will result in compilation errors.