Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- 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) 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 CallPath
- func (*CallPath) Descriptor() ([]byte, []int)deprecated
- func (x *CallPath) GetConfidence() float32
- func (x *CallPath) GetFunctionKeys() []string
- func (x *CallPath) GetPathLength() int32
- func (*CallPath) ProtoMessage()
- func (x *CallPath) ProtoReflect() protoreflect.Message
- func (x *CallPath) Reset()
- func (x *CallPath) String() string
- type CallSite
- 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 DetailedHotFunction
- func (*DetailedHotFunction) Descriptor() ([]byte, []int)deprecated
- func (x *DetailedHotFunction) GetCalleeCount() int32
- func (x *DetailedHotFunction) GetCallerCount() int32
- func (x *DetailedHotFunction) GetDoc() string
- func (x *DetailedHotFunction) GetImportanceScore() float32
- func (x *DetailedHotFunction) GetKey() string
- func (x *DetailedHotFunction) GetName() string
- func (x *DetailedHotFunction) GetPackage() string
- func (x *DetailedHotFunction) GetPosition() *NodePosition
- func (x *DetailedHotFunction) GetSignature() string
- func (x *DetailedHotFunction) GetTopCallees() []string
- func (x *DetailedHotFunction) GetTopCallers() []string
- func (*DetailedHotFunction) ProtoMessage()
- func (x *DetailedHotFunction) ProtoReflect() protoreflect.Message
- func (x *DetailedHotFunction) Reset()
- func (x *DetailedHotFunction) String() string
- type FunctionDetail
- func (*FunctionDetail) Descriptor() ([]byte, []int)deprecated
- func (x *FunctionDetail) GetCallSites() []*CallSite
- func (x *FunctionDetail) GetDoc() string
- func (x *FunctionDetail) GetFullName() string
- func (x *FunctionDetail) GetKey() string
- func (x *FunctionDetail) GetMetrics() *NodeMetrics
- func (x *FunctionDetail) GetName() string
- func (x *FunctionDetail) GetPackage() string
- func (x *FunctionDetail) GetPosition() *NodePosition
- func (x *FunctionDetail) GetSignature() string
- func (*FunctionDetail) ProtoMessage()
- func (x *FunctionDetail) ProtoReflect() protoreflect.Message
- func (x *FunctionDetail) Reset()
- func (x *FunctionDetail) 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 GetCallGraphRequest
- func (*GetCallGraphRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCallGraphRequest) GetIncludeExternal() bool
- func (x *GetCallGraphRequest) GetMaxDepth() int32
- func (x *GetCallGraphRequest) GetRootFunction() string
- func (*GetCallGraphRequest) ProtoMessage()
- func (x *GetCallGraphRequest) ProtoReflect() protoreflect.Message
- func (x *GetCallGraphRequest) Reset()
- func (x *GetCallGraphRequest) String() string
- type GetCallGraphResponse
- func (*GetCallGraphResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCallGraphResponse) GetEdges() []*GraphEdge
- func (x *GetCallGraphResponse) GetNodes() []*GraphNode
- func (x *GetCallGraphResponse) GetRootNode() string
- func (x *GetCallGraphResponse) GetTotalEdges() int32
- func (x *GetCallGraphResponse) GetTotalNodes() int32
- func (*GetCallGraphResponse) ProtoMessage()
- func (x *GetCallGraphResponse) ProtoReflect() protoreflect.Message
- func (x *GetCallGraphResponse) Reset()
- func (x *GetCallGraphResponse) String() string
- type GetFunctionCallPathsRequest
- func (*GetFunctionCallPathsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionCallPathsRequest) GetFromFunction() string
- func (x *GetFunctionCallPathsRequest) GetMaxDepth() int32
- func (x *GetFunctionCallPathsRequest) GetMaxPaths() int32
- func (x *GetFunctionCallPathsRequest) GetToFunction() string
- func (*GetFunctionCallPathsRequest) ProtoMessage()
- func (x *GetFunctionCallPathsRequest) ProtoReflect() protoreflect.Message
- func (x *GetFunctionCallPathsRequest) Reset()
- func (x *GetFunctionCallPathsRequest) String() string
- type GetFunctionCallPathsResponse
- func (*GetFunctionCallPathsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionCallPathsResponse) GetHasMore() bool
- func (x *GetFunctionCallPathsResponse) GetPaths() []*CallPath
- func (*GetFunctionCallPathsResponse) ProtoMessage()
- func (x *GetFunctionCallPathsResponse) ProtoReflect() protoreflect.Message
- func (x *GetFunctionCallPathsResponse) Reset()
- func (x *GetFunctionCallPathsResponse) String() string
- type GetFunctionDetailsRequest
- func (*GetFunctionDetailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionDetailsRequest) GetFunctionKey() string
- func (*GetFunctionDetailsRequest) ProtoMessage()
- func (x *GetFunctionDetailsRequest) ProtoReflect() protoreflect.Message
- func (x *GetFunctionDetailsRequest) Reset()
- func (x *GetFunctionDetailsRequest) String() string
- type GetFunctionDetailsResponse
- func (*GetFunctionDetailsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFunctionDetailsResponse) GetCallees() []*FunctionDetail
- func (x *GetFunctionDetailsResponse) GetCallers() []*FunctionDetail
- func (x *GetFunctionDetailsResponse) GetFunction() *FunctionDetail
- func (*GetFunctionDetailsResponse) ProtoMessage()
- func (x *GetFunctionDetailsResponse) ProtoReflect() protoreflect.Message
- func (x *GetFunctionDetailsResponse) Reset()
- func (x *GetFunctionDetailsResponse) String() string
- type GetGlobalStatisticsRequest
- type GetGlobalStatisticsResponse
- func (*GetGlobalStatisticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGlobalStatisticsResponse) GetAvgCallDepth() float32
- func (x *GetGlobalStatisticsResponse) GetHotFunctions() []*HotFunction
- func (x *GetGlobalStatisticsResponse) GetMaxCallDepth() int32
- func (x *GetGlobalStatisticsResponse) GetPackageStats() []*PackageStatistic
- func (x *GetGlobalStatisticsResponse) GetTotalEdges() int32
- func (x *GetGlobalStatisticsResponse) GetTotalFunctions() int32
- func (x *GetGlobalStatisticsResponse) GetTotalPackages() int32
- func (*GetGlobalStatisticsResponse) ProtoMessage()
- func (x *GetGlobalStatisticsResponse) ProtoReflect() protoreflect.Message
- func (x *GetGlobalStatisticsResponse) Reset()
- func (x *GetGlobalStatisticsResponse) String() string
- type GetHotFunctionsRequest
- func (*GetHotFunctionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHotFunctionsRequest) GetLimit() int32
- func (x *GetHotFunctionsRequest) GetSortBy() string
- 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() []*DetailedHotFunction
- func (*GetHotFunctionsResponse) ProtoMessage()
- func (x *GetHotFunctionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetHotFunctionsResponse) Reset()
- func (x *GetHotFunctionsResponse) String() string
- type GetInitFunctionsRequest
- func (*GetInitFunctionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInitFunctionsRequest) GetLimit() int32
- func (x *GetInitFunctionsRequest) GetPackageFilter() string
- func (*GetInitFunctionsRequest) ProtoMessage()
- func (x *GetInitFunctionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetInitFunctionsRequest) Reset()
- func (x *GetInitFunctionsRequest) String() string
- type GetInitFunctionsResponse
- func (*GetInitFunctionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInitFunctionsResponse) GetInitFunctions() []*InitFunction
- func (x *GetInitFunctionsResponse) GetTotalCount() int32
- func (*GetInitFunctionsResponse) ProtoMessage()
- func (x *GetInitFunctionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetInitFunctionsResponse) Reset()
- func (x *GetInitFunctionsResponse) String() string
- type GetPackageDependenciesRequest
- func (*GetPackageDependenciesRequest) Descriptor() ([]byte, []int)deprecated
- 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) GetPackages() []*PackageNode
- 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 GraphEdge
- func (*GraphEdge) Descriptor() ([]byte, []int)deprecated
- func (x *GraphEdge) GetCallCount() int32
- func (x *GraphEdge) GetCallSites() []*CallSite
- func (x *GraphEdge) GetCallType() string
- func (x *GraphEdge) GetId() string
- func (x *GraphEdge) GetSource() string
- func (x *GraphEdge) GetTarget() string
- 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) GetDoc() string
- func (x *GraphNode) GetFullName() string
- func (x *GraphNode) GetId() string
- func (x *GraphNode) GetLabel() string
- func (x *GraphNode) GetMetrics() *NodeMetrics
- func (x *GraphNode) GetPackage() string
- func (x *GraphNode) GetPosition() *NodePosition
- func (x *GraphNode) GetSignature() string
- func (x *GraphNode) GetType() NodeType
- 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) GetCalleeCount() int32
- func (x *HotFunction) GetCallerCount() int32
- func (x *HotFunction) GetImportanceScore() float32
- 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 InitFunction
- func (*InitFunction) Descriptor() ([]byte, []int)deprecated
- func (x *InitFunction) GetDoc() string
- func (x *InitFunction) GetFullName() string
- func (x *InitFunction) GetKey() string
- func (x *InitFunction) GetName() string
- func (x *InitFunction) GetPackage() string
- func (x *InitFunction) GetPosition() *NodePosition
- func (x *InitFunction) GetSignature() string
- func (*InitFunction) ProtoMessage()
- func (x *InitFunction) ProtoReflect() protoreflect.Message
- func (x *InitFunction) Reset()
- func (x *InitFunction) String() string
- type NodeMetrics
- func (*NodeMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *NodeMetrics) GetCalleeCount() int32
- func (x *NodeMetrics) GetCallerCount() int32
- func (x *NodeMetrics) GetCentrality() float32
- func (x *NodeMetrics) GetDepthLevel() int32
- func (*NodeMetrics) ProtoMessage()
- func (x *NodeMetrics) ProtoReflect() protoreflect.Message
- func (x *NodeMetrics) Reset()
- func (x *NodeMetrics) String() string
- type NodePosition
- func (*NodePosition) Descriptor() ([]byte, []int)deprecated
- func (x *NodePosition) GetEndLine() int32
- func (x *NodePosition) GetFilename() string
- func (x *NodePosition) GetStartLine() int32
- func (*NodePosition) ProtoMessage()
- func (x *NodePosition) ProtoReflect() protoreflect.Message
- func (x *NodePosition) Reset()
- func (x *NodePosition) String() string
- type NodeType
- type PackageDependency
- func (*PackageDependency) Descriptor() ([]byte, []int)deprecated
- func (x *PackageDependency) GetCallCount() int32
- func (x *PackageDependency) GetCallFunctions() []string
- func (x *PackageDependency) GetDependencyStrength() float32
- func (x *PackageDependency) GetSourcePackage() string
- func (x *PackageDependency) GetTargetPackage() string
- func (*PackageDependency) ProtoMessage()
- func (x *PackageDependency) ProtoReflect() protoreflect.Message
- func (x *PackageDependency) Reset()
- func (x *PackageDependency) String() string
- type PackageNode
- func (*PackageNode) Descriptor() ([]byte, []int)deprecated
- func (x *PackageNode) GetComplexity() float32
- func (x *PackageNode) GetExternalCallCount() int32
- func (x *PackageNode) GetFunctionCount() int32
- func (x *PackageNode) GetInternalCallCount() int32
- func (x *PackageNode) GetName() string
- func (x *PackageNode) GetSubPackages() []string
- func (*PackageNode) ProtoMessage()
- func (x *PackageNode) ProtoReflect() protoreflect.Message
- func (x *PackageNode) Reset()
- func (x *PackageNode) String() string
- type PackageStatistic
- func (*PackageStatistic) Descriptor() ([]byte, []int)deprecated
- func (x *PackageStatistic) GetComplexityScore() float32
- func (x *PackageStatistic) GetExternalCalls() int32
- func (x *PackageStatistic) GetFunctionCount() int32
- func (x *PackageStatistic) GetInternalCalls() int32
- func (x *PackageStatistic) GetPackageName() string
- func (*PackageStatistic) ProtoMessage()
- func (x *PackageStatistic) ProtoReflect() protoreflect.Message
- func (x *PackageStatistic) Reset()
- func (x *PackageStatistic) String() string
- type SearchFunctionsRequest
- func (*SearchFunctionsRequest) Descriptor() ([]byte, []int)deprecated
- 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 StaticAnalysisServer
- type UnimplementedStaticAnalysisServer
- func (UnimplementedStaticAnalysisServer) AnalyzeDbFile(context.Context, *AnalyzeDbFileRequest) (*AnalyzeDbFileResponse, error)
- func (UnimplementedStaticAnalysisServer) AnalyzeProjectPath(context.Context, *AnalyzeProjectPathRequest) (*AnalyzeProjectPathResponse, error)
- func (UnimplementedStaticAnalysisServer) GetAnalysisTaskStatus(context.Context, *GetAnalysisTaskStatusRequest) (*GetAnalysisTaskStatusResponse, error)
- func (UnimplementedStaticAnalysisServer) GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionCallPaths(context.Context, *GetFunctionCallPathsRequest) (*GetFunctionCallPathsResponse, error)
- func (UnimplementedStaticAnalysisServer) GetFunctionDetails(context.Context, *GetFunctionDetailsRequest) (*GetFunctionDetailsResponse, error)
- func (UnimplementedStaticAnalysisServer) GetGlobalStatistics(context.Context, *GetGlobalStatisticsRequest) (*GetGlobalStatisticsResponse, error)
- func (UnimplementedStaticAnalysisServer) GetHotFunctions(context.Context, *GetHotFunctionsRequest) (*GetHotFunctionsResponse, error)
- func (UnimplementedStaticAnalysisServer) GetInitFunctions(context.Context, *GetInitFunctionsRequest) (*GetInitFunctionsResponse, error)
- func (UnimplementedStaticAnalysisServer) GetPackageDependencies(context.Context, *GetPackageDependenciesRequest) (*GetPackageDependenciesResponse, error)
- func (UnimplementedStaticAnalysisServer) GetStaticDbFiles(context.Context, *GetStaticDbFilesRequest) (*GetStaticDbFilesResponse, 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_SearchFunctions_FullMethodName = "/staticanalysis.v1.StaticAnalysis/SearchFunctions" StaticAnalysis_GetGlobalStatistics_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetGlobalStatistics" StaticAnalysis_GetCallGraph_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetCallGraph" StaticAnalysis_GetPackageDependencies_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetPackageDependencies" StaticAnalysis_GetHotFunctions_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetHotFunctions" StaticAnalysis_GetFunctionDetails_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionDetails" StaticAnalysis_GetFunctionCallPaths_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetFunctionCallPaths" StaticAnalysis_GetInitFunctions_FullMethodName = "/staticanalysis.v1.StaticAnalysis/GetInitFunctions" )
Variables ¶
var ( NodeType_name = map[int32]string{ 0: "NORMAL", 1: "ENTRY_POINT", 2: "HOT_SPOT", 3: "EXTERNAL", } NodeType_value = map[string]int32{ "NORMAL": 0, "ENTRY_POINT": 1, "HOT_SPOT": 2, "EXTERNAL": 3, } )
Enum value maps for NodeType.
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: "SearchFunctions", Handler: _StaticAnalysis_SearchFunctions_Handler, }, { MethodName: "GetGlobalStatistics", Handler: _StaticAnalysis_GetGlobalStatistics_Handler, }, { MethodName: "GetCallGraph", Handler: _StaticAnalysis_GetCallGraph_Handler, }, { MethodName: "GetPackageDependencies", Handler: _StaticAnalysis_GetPackageDependencies_Handler, }, { MethodName: "GetHotFunctions", Handler: _StaticAnalysis_GetHotFunctions_Handler, }, { MethodName: "GetFunctionDetails", Handler: _StaticAnalysis_GetFunctionDetails_Handler, }, { MethodName: "GetFunctionCallPaths", Handler: _StaticAnalysis_GetFunctionCallPaths_Handler, }, { MethodName: "GetInitFunctions", Handler: _StaticAnalysis_GetInitFunctions_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 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"`
// contains filtered or unexported fields
}
分析数据库文件响应
func (*AnalyzeDbFileResponse) Descriptor
deprecated
func (*AnalyzeDbFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeDbFileResponse.ProtoReflect.Descriptor instead.
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 CallPath ¶ added in v1.2.1
type CallPath struct {
FunctionKeys []string `protobuf:"bytes,1,rep,name=function_keys,json=functionKeys,proto3" json:"function_keys,omitempty"` // 路径上的函数key序列
PathLength int32 `protobuf:"varint,2,opt,name=path_length,json=pathLength,proto3" json:"path_length,omitempty"` // 路径长度
Confidence float32 `protobuf:"fixed32,3,opt,name=confidence,proto3" json:"confidence,omitempty"` // 路径可信度
// contains filtered or unexported fields
}
调用路径
func (*CallPath) Descriptor
deprecated
added in
v1.2.1
func (*CallPath) GetConfidence ¶ added in v1.2.1
func (*CallPath) GetFunctionKeys ¶ added in v1.2.1
func (*CallPath) GetPathLength ¶ added in v1.2.1
func (*CallPath) ProtoMessage ¶ added in v1.2.1
func (*CallPath) ProtoMessage()
func (*CallPath) ProtoReflect ¶ added in v1.2.1
func (x *CallPath) ProtoReflect() protoreflect.Message
type CallSite ¶ added in v1.2.1
type CallSite struct {
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// contains filtered or unexported fields
}
调用点信息
func (*CallSite) Descriptor
deprecated
added in
v1.2.1
func (*CallSite) ProtoMessage ¶ added in v1.2.1
func (*CallSite) ProtoMessage()
func (*CallSite) ProtoReflect ¶ added in v1.2.1
func (x *CallSite) ProtoReflect() protoreflect.Message
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 DetailedHotFunction ¶ added in v1.2.1
type DetailedHotFunction 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"`
Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
Doc string `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"`
Position *NodePosition `protobuf:"bytes,6,opt,name=position,proto3" json:"position,omitempty"`
CallerCount int32 `protobuf:"varint,7,opt,name=caller_count,json=callerCount,proto3" json:"caller_count,omitempty"`
CalleeCount int32 `protobuf:"varint,8,opt,name=callee_count,json=calleeCount,proto3" json:"callee_count,omitempty"`
ImportanceScore float32 `protobuf:"fixed32,9,opt,name=importance_score,json=importanceScore,proto3" json:"importance_score,omitempty"`
TopCallers []string `protobuf:"bytes,10,rep,name=top_callers,json=topCallers,proto3" json:"top_callers,omitempty"` // 主要调用者
TopCallees []string `protobuf:"bytes,11,rep,name=top_callees,json=topCallees,proto3" json:"top_callees,omitempty"` // 主要被调用者
// contains filtered or unexported fields
}
详细热点函数信息
func (*DetailedHotFunction) Descriptor
deprecated
added in
v1.2.1
func (*DetailedHotFunction) Descriptor() ([]byte, []int)
Deprecated: Use DetailedHotFunction.ProtoReflect.Descriptor instead.
func (*DetailedHotFunction) GetCalleeCount ¶ added in v1.2.1
func (x *DetailedHotFunction) GetCalleeCount() int32
func (*DetailedHotFunction) GetCallerCount ¶ added in v1.2.1
func (x *DetailedHotFunction) GetCallerCount() int32
func (*DetailedHotFunction) GetDoc ¶ added in v1.2.1
func (x *DetailedHotFunction) GetDoc() string
func (*DetailedHotFunction) GetImportanceScore ¶ added in v1.2.1
func (x *DetailedHotFunction) GetImportanceScore() float32
func (*DetailedHotFunction) GetKey ¶ added in v1.2.1
func (x *DetailedHotFunction) GetKey() string
func (*DetailedHotFunction) GetName ¶ added in v1.2.1
func (x *DetailedHotFunction) GetName() string
func (*DetailedHotFunction) GetPackage ¶ added in v1.2.1
func (x *DetailedHotFunction) GetPackage() string
func (*DetailedHotFunction) GetPosition ¶ added in v1.2.1
func (x *DetailedHotFunction) GetPosition() *NodePosition
func (*DetailedHotFunction) GetSignature ¶ added in v1.2.1
func (x *DetailedHotFunction) GetSignature() string
func (*DetailedHotFunction) GetTopCallees ¶ added in v1.2.1
func (x *DetailedHotFunction) GetTopCallees() []string
func (*DetailedHotFunction) GetTopCallers ¶ added in v1.2.1
func (x *DetailedHotFunction) GetTopCallers() []string
func (*DetailedHotFunction) ProtoMessage ¶ added in v1.2.1
func (*DetailedHotFunction) ProtoMessage()
func (*DetailedHotFunction) ProtoReflect ¶ added in v1.2.1
func (x *DetailedHotFunction) ProtoReflect() protoreflect.Message
func (*DetailedHotFunction) Reset ¶ added in v1.2.1
func (x *DetailedHotFunction) Reset()
func (*DetailedHotFunction) String ¶ added in v1.2.1
func (x *DetailedHotFunction) String() string
type FunctionDetail ¶ added in v1.2.1
type FunctionDetail 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"`
FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
Doc string `protobuf:"bytes,6,opt,name=doc,proto3" json:"doc,omitempty"`
Position *NodePosition `protobuf:"bytes,7,opt,name=position,proto3" json:"position,omitempty"`
Metrics *NodeMetrics `protobuf:"bytes,8,opt,name=metrics,proto3" json:"metrics,omitempty"`
CallSites []*CallSite `protobuf:"bytes,9,rep,name=call_sites,json=callSites,proto3" json:"call_sites,omitempty"` // 如果是调用关系,显示调用点
// contains filtered or unexported fields
}
函数详细信息
func (*FunctionDetail) Descriptor
deprecated
added in
v1.2.1
func (*FunctionDetail) Descriptor() ([]byte, []int)
Deprecated: Use FunctionDetail.ProtoReflect.Descriptor instead.
func (*FunctionDetail) GetCallSites ¶ added in v1.2.1
func (x *FunctionDetail) GetCallSites() []*CallSite
func (*FunctionDetail) GetDoc ¶ added in v1.2.1
func (x *FunctionDetail) GetDoc() string
func (*FunctionDetail) GetFullName ¶ added in v1.2.1
func (x *FunctionDetail) GetFullName() string
func (*FunctionDetail) GetKey ¶ added in v1.2.1
func (x *FunctionDetail) GetKey() string
func (*FunctionDetail) GetMetrics ¶ added in v1.2.1
func (x *FunctionDetail) GetMetrics() *NodeMetrics
func (*FunctionDetail) GetName ¶ added in v1.2.1
func (x *FunctionDetail) GetName() string
func (*FunctionDetail) GetPackage ¶ added in v1.2.1
func (x *FunctionDetail) GetPackage() string
func (*FunctionDetail) GetPosition ¶ added in v1.2.1
func (x *FunctionDetail) GetPosition() *NodePosition
func (*FunctionDetail) GetSignature ¶ added in v1.2.1
func (x *FunctionDetail) GetSignature() string
func (*FunctionDetail) ProtoMessage ¶ added in v1.2.1
func (*FunctionDetail) ProtoMessage()
func (*FunctionDetail) ProtoReflect ¶ added in v1.2.1
func (x *FunctionDetail) ProtoReflect() protoreflect.Message
func (*FunctionDetail) Reset ¶ added in v1.2.1
func (x *FunctionDetail) Reset()
func (*FunctionDetail) String ¶ added in v1.2.1
func (x *FunctionDetail) 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 GetCallGraphRequest ¶ added in v1.2.1
type GetCallGraphRequest struct {
RootFunction string `protobuf:"bytes,1,opt,name=root_function,json=rootFunction,proto3" json:"root_function,omitempty"` // 根函数(可选,为空则返回全图)
MaxDepth int32 `protobuf:"varint,2,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"` // 最大深度(默认3)
IncludeExternal bool `protobuf:"varint,3,opt,name=include_external,json=includeExternal,proto3" json:"include_external,omitempty"` // 是否包含外部包调用
// contains filtered or unexported fields
}
获取调用图请求
func (*GetCallGraphRequest) Descriptor
deprecated
added in
v1.2.1
func (*GetCallGraphRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCallGraphRequest.ProtoReflect.Descriptor instead.
func (*GetCallGraphRequest) GetIncludeExternal ¶ added in v1.2.1
func (x *GetCallGraphRequest) GetIncludeExternal() bool
func (*GetCallGraphRequest) GetMaxDepth ¶ added in v1.2.1
func (x *GetCallGraphRequest) GetMaxDepth() int32
func (*GetCallGraphRequest) GetRootFunction ¶ added in v1.2.1
func (x *GetCallGraphRequest) GetRootFunction() string
func (*GetCallGraphRequest) ProtoMessage ¶ added in v1.2.1
func (*GetCallGraphRequest) ProtoMessage()
func (*GetCallGraphRequest) ProtoReflect ¶ added in v1.2.1
func (x *GetCallGraphRequest) ProtoReflect() protoreflect.Message
func (*GetCallGraphRequest) Reset ¶ added in v1.2.1
func (x *GetCallGraphRequest) Reset()
func (*GetCallGraphRequest) String ¶ added in v1.2.1
func (x *GetCallGraphRequest) String() string
type GetCallGraphResponse ¶ added in v1.2.1
type GetCallGraphResponse 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"`
TotalNodes int32 `protobuf:"varint,3,opt,name=total_nodes,json=totalNodes,proto3" json:"total_nodes,omitempty"`
TotalEdges int32 `protobuf:"varint,4,opt,name=total_edges,json=totalEdges,proto3" json:"total_edges,omitempty"`
RootNode string `protobuf:"bytes,5,opt,name=root_node,json=rootNode,proto3" json:"root_node,omitempty"` // 根节点ID
// contains filtered or unexported fields
}
调用图响应
func (*GetCallGraphResponse) Descriptor
deprecated
added in
v1.2.1
func (*GetCallGraphResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCallGraphResponse.ProtoReflect.Descriptor instead.
func (*GetCallGraphResponse) GetEdges ¶ added in v1.2.1
func (x *GetCallGraphResponse) GetEdges() []*GraphEdge
func (*GetCallGraphResponse) GetNodes ¶ added in v1.2.1
func (x *GetCallGraphResponse) GetNodes() []*GraphNode
func (*GetCallGraphResponse) GetRootNode ¶ added in v1.2.1
func (x *GetCallGraphResponse) GetRootNode() string
func (*GetCallGraphResponse) GetTotalEdges ¶ added in v1.2.1
func (x *GetCallGraphResponse) GetTotalEdges() int32
func (*GetCallGraphResponse) GetTotalNodes ¶ added in v1.2.1
func (x *GetCallGraphResponse) GetTotalNodes() int32
func (*GetCallGraphResponse) ProtoMessage ¶ added in v1.2.1
func (*GetCallGraphResponse) ProtoMessage()
func (*GetCallGraphResponse) ProtoReflect ¶ added in v1.2.1
func (x *GetCallGraphResponse) ProtoReflect() protoreflect.Message
func (*GetCallGraphResponse) Reset ¶ added in v1.2.1
func (x *GetCallGraphResponse) Reset()
func (*GetCallGraphResponse) String ¶ added in v1.2.1
func (x *GetCallGraphResponse) String() string
type GetFunctionCallPathsRequest ¶ added in v1.2.1
type GetFunctionCallPathsRequest struct {
FromFunction string `protobuf:"bytes,1,opt,name=from_function,json=fromFunction,proto3" json:"from_function,omitempty"` // 起始函数
ToFunction string `protobuf:"bytes,2,opt,name=to_function,json=toFunction,proto3" json:"to_function,omitempty"` // 目标函数
MaxPaths int32 `protobuf:"varint,3,opt,name=max_paths,json=maxPaths,proto3" json:"max_paths,omitempty"` // 最大路径数(默认5)
MaxDepth int32 `protobuf:"varint,4,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"` // 最大深度(默认10)
// contains filtered or unexported fields
}
获取函数调用路径请求
func (*GetFunctionCallPathsRequest) Descriptor
deprecated
added in
v1.2.1
func (*GetFunctionCallPathsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionCallPathsRequest.ProtoReflect.Descriptor instead.
func (*GetFunctionCallPathsRequest) GetFromFunction ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) GetFromFunction() string
func (*GetFunctionCallPathsRequest) GetMaxDepth ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) GetMaxDepth() int32
func (*GetFunctionCallPathsRequest) GetMaxPaths ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) GetMaxPaths() int32
func (*GetFunctionCallPathsRequest) GetToFunction ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) GetToFunction() string
func (*GetFunctionCallPathsRequest) ProtoMessage ¶ added in v1.2.1
func (*GetFunctionCallPathsRequest) ProtoMessage()
func (*GetFunctionCallPathsRequest) ProtoReflect ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) ProtoReflect() protoreflect.Message
func (*GetFunctionCallPathsRequest) Reset ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) Reset()
func (*GetFunctionCallPathsRequest) String ¶ added in v1.2.1
func (x *GetFunctionCallPathsRequest) String() string
type GetFunctionCallPathsResponse ¶ added in v1.2.1
type GetFunctionCallPathsResponse struct {
Paths []*CallPath `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否还有更多路径
// contains filtered or unexported fields
}
函数调用路径响应
func (*GetFunctionCallPathsResponse) Descriptor
deprecated
added in
v1.2.1
func (*GetFunctionCallPathsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionCallPathsResponse.ProtoReflect.Descriptor instead.
func (*GetFunctionCallPathsResponse) GetHasMore ¶ added in v1.2.1
func (x *GetFunctionCallPathsResponse) GetHasMore() bool
func (*GetFunctionCallPathsResponse) GetPaths ¶ added in v1.2.1
func (x *GetFunctionCallPathsResponse) GetPaths() []*CallPath
func (*GetFunctionCallPathsResponse) ProtoMessage ¶ added in v1.2.1
func (*GetFunctionCallPathsResponse) ProtoMessage()
func (*GetFunctionCallPathsResponse) ProtoReflect ¶ added in v1.2.1
func (x *GetFunctionCallPathsResponse) ProtoReflect() protoreflect.Message
func (*GetFunctionCallPathsResponse) Reset ¶ added in v1.2.1
func (x *GetFunctionCallPathsResponse) Reset()
func (*GetFunctionCallPathsResponse) String ¶ added in v1.2.1
func (x *GetFunctionCallPathsResponse) String() string
type GetFunctionDetailsRequest ¶ added in v1.2.1
type GetFunctionDetailsRequest struct {
FunctionKey string `protobuf:"bytes,1,opt,name=function_key,json=functionKey,proto3" json:"function_key,omitempty"`
// contains filtered or unexported fields
}
获取函数详细信息请求
func (*GetFunctionDetailsRequest) Descriptor
deprecated
added in
v1.2.1
func (*GetFunctionDetailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionDetailsRequest.ProtoReflect.Descriptor instead.
func (*GetFunctionDetailsRequest) GetFunctionKey ¶ added in v1.2.1
func (x *GetFunctionDetailsRequest) GetFunctionKey() string
func (*GetFunctionDetailsRequest) ProtoMessage ¶ added in v1.2.1
func (*GetFunctionDetailsRequest) ProtoMessage()
func (*GetFunctionDetailsRequest) ProtoReflect ¶ added in v1.2.1
func (x *GetFunctionDetailsRequest) ProtoReflect() protoreflect.Message
func (*GetFunctionDetailsRequest) Reset ¶ added in v1.2.1
func (x *GetFunctionDetailsRequest) Reset()
func (*GetFunctionDetailsRequest) String ¶ added in v1.2.1
func (x *GetFunctionDetailsRequest) String() string
type GetFunctionDetailsResponse ¶ added in v1.2.1
type GetFunctionDetailsResponse struct {
Function *FunctionDetail `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"`
Callers []*FunctionDetail `protobuf:"bytes,2,rep,name=callers,proto3" json:"callers,omitempty"` // 调用者列表
Callees []*FunctionDetail `protobuf:"bytes,3,rep,name=callees,proto3" json:"callees,omitempty"` // 被调用者列表
// contains filtered or unexported fields
}
函数详细信息响应
func (*GetFunctionDetailsResponse) Descriptor
deprecated
added in
v1.2.1
func (*GetFunctionDetailsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFunctionDetailsResponse.ProtoReflect.Descriptor instead.
func (*GetFunctionDetailsResponse) GetCallees ¶ added in v1.2.1
func (x *GetFunctionDetailsResponse) GetCallees() []*FunctionDetail
func (*GetFunctionDetailsResponse) GetCallers ¶ added in v1.2.1
func (x *GetFunctionDetailsResponse) GetCallers() []*FunctionDetail
func (*GetFunctionDetailsResponse) GetFunction ¶ added in v1.2.1
func (x *GetFunctionDetailsResponse) GetFunction() *FunctionDetail
func (*GetFunctionDetailsResponse) ProtoMessage ¶ added in v1.2.1
func (*GetFunctionDetailsResponse) ProtoMessage()
func (*GetFunctionDetailsResponse) ProtoReflect ¶ added in v1.2.1
func (x *GetFunctionDetailsResponse) ProtoReflect() protoreflect.Message
func (*GetFunctionDetailsResponse) Reset ¶ added in v1.2.1
func (x *GetFunctionDetailsResponse) Reset()
func (*GetFunctionDetailsResponse) String ¶ added in v1.2.1
func (x *GetFunctionDetailsResponse) String() string
type GetGlobalStatisticsRequest ¶ added in v1.2.1
type GetGlobalStatisticsRequest struct {
// contains filtered or unexported fields
}
获取全局统计信息请求
func (*GetGlobalStatisticsRequest) Descriptor
deprecated
added in
v1.2.1
func (*GetGlobalStatisticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGlobalStatisticsRequest.ProtoReflect.Descriptor instead.
func (*GetGlobalStatisticsRequest) ProtoMessage ¶ added in v1.2.1
func (*GetGlobalStatisticsRequest) ProtoMessage()
func (*GetGlobalStatisticsRequest) ProtoReflect ¶ added in v1.2.1
func (x *GetGlobalStatisticsRequest) ProtoReflect() protoreflect.Message
func (*GetGlobalStatisticsRequest) Reset ¶ added in v1.2.1
func (x *GetGlobalStatisticsRequest) Reset()
func (*GetGlobalStatisticsRequest) String ¶ added in v1.2.1
func (x *GetGlobalStatisticsRequest) String() string
type GetGlobalStatisticsResponse ¶ added in v1.2.1
type GetGlobalStatisticsResponse struct {
TotalFunctions int32 `protobuf:"varint,1,opt,name=total_functions,json=totalFunctions,proto3" json:"total_functions,omitempty"`
TotalPackages int32 `protobuf:"varint,2,opt,name=total_packages,json=totalPackages,proto3" json:"total_packages,omitempty"`
TotalEdges int32 `protobuf:"varint,3,opt,name=total_edges,json=totalEdges,proto3" json:"total_edges,omitempty"`
AvgCallDepth float32 `protobuf:"fixed32,4,opt,name=avg_call_depth,json=avgCallDepth,proto3" json:"avg_call_depth,omitempty"`
MaxCallDepth int32 `protobuf:"varint,5,opt,name=max_call_depth,json=maxCallDepth,proto3" json:"max_call_depth,omitempty"`
HotFunctions []*HotFunction `protobuf:"bytes,6,rep,name=hot_functions,json=hotFunctions,proto3" json:"hot_functions,omitempty"`
PackageStats []*PackageStatistic `protobuf:"bytes,7,rep,name=package_stats,json=packageStats,proto3" json:"package_stats,omitempty"`
// contains filtered or unexported fields
}
全局统计信息响应
func (*GetGlobalStatisticsResponse) Descriptor
deprecated
added in
v1.2.1
func (*GetGlobalStatisticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGlobalStatisticsResponse.ProtoReflect.Descriptor instead.
func (*GetGlobalStatisticsResponse) GetAvgCallDepth ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetAvgCallDepth() float32
func (*GetGlobalStatisticsResponse) GetHotFunctions ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetHotFunctions() []*HotFunction
func (*GetGlobalStatisticsResponse) GetMaxCallDepth ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetMaxCallDepth() int32
func (*GetGlobalStatisticsResponse) GetPackageStats ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetPackageStats() []*PackageStatistic
func (*GetGlobalStatisticsResponse) GetTotalEdges ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetTotalEdges() int32
func (*GetGlobalStatisticsResponse) GetTotalFunctions ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetTotalFunctions() int32
func (*GetGlobalStatisticsResponse) GetTotalPackages ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) GetTotalPackages() int32
func (*GetGlobalStatisticsResponse) ProtoMessage ¶ added in v1.2.1
func (*GetGlobalStatisticsResponse) ProtoMessage()
func (*GetGlobalStatisticsResponse) ProtoReflect ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) ProtoReflect() protoreflect.Message
func (*GetGlobalStatisticsResponse) Reset ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) Reset()
func (*GetGlobalStatisticsResponse) String ¶ added in v1.2.1
func (x *GetGlobalStatisticsResponse) String() string
type GetHotFunctionsRequest ¶
type GetHotFunctionsRequest struct {
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // 返回数量限制(默认10)
SortBy string `protobuf:"bytes,2,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // 排序方式:caller_count, callee_count, importance
// contains filtered or unexported fields
}
获取热点函数请求
func (*GetHotFunctionsRequest) Descriptor
deprecated
func (*GetHotFunctionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHotFunctionsRequest.ProtoReflect.Descriptor instead.
func (*GetHotFunctionsRequest) GetLimit ¶ added in v1.2.1
func (x *GetHotFunctionsRequest) GetLimit() int32
func (*GetHotFunctionsRequest) GetSortBy ¶ added in v1.2.1
func (x *GetHotFunctionsRequest) GetSortBy() string
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 []*DetailedHotFunction `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,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() []*DetailedHotFunction
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 GetInitFunctionsRequest ¶ added in v1.2.1
type GetInitFunctionsRequest struct {
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // 返回数量限制(默认50)
PackageFilter string `protobuf:"bytes,2,opt,name=package_filter,json=packageFilter,proto3" json:"package_filter,omitempty"` // 包名过滤器(可选)
// contains filtered or unexported fields
}
获取Init函数列表请求
func (*GetInitFunctionsRequest) Descriptor
deprecated
added in
v1.2.1
func (*GetInitFunctionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInitFunctionsRequest.ProtoReflect.Descriptor instead.
func (*GetInitFunctionsRequest) GetLimit ¶ added in v1.2.1
func (x *GetInitFunctionsRequest) GetLimit() int32
func (*GetInitFunctionsRequest) GetPackageFilter ¶ added in v1.2.1
func (x *GetInitFunctionsRequest) GetPackageFilter() string
func (*GetInitFunctionsRequest) ProtoMessage ¶ added in v1.2.1
func (*GetInitFunctionsRequest) ProtoMessage()
func (*GetInitFunctionsRequest) ProtoReflect ¶ added in v1.2.1
func (x *GetInitFunctionsRequest) ProtoReflect() protoreflect.Message
func (*GetInitFunctionsRequest) Reset ¶ added in v1.2.1
func (x *GetInitFunctionsRequest) Reset()
func (*GetInitFunctionsRequest) String ¶ added in v1.2.1
func (x *GetInitFunctionsRequest) String() string
type GetInitFunctionsResponse ¶ added in v1.2.1
type GetInitFunctionsResponse struct {
InitFunctions []*InitFunction `protobuf:"bytes,1,rep,name=init_functions,json=initFunctions,proto3" json:"init_functions,omitempty"`
TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // 总数量
// contains filtered or unexported fields
}
获取Init函数列表响应
func (*GetInitFunctionsResponse) Descriptor
deprecated
added in
v1.2.1
func (*GetInitFunctionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInitFunctionsResponse.ProtoReflect.Descriptor instead.
func (*GetInitFunctionsResponse) GetInitFunctions ¶ added in v1.2.1
func (x *GetInitFunctionsResponse) GetInitFunctions() []*InitFunction
func (*GetInitFunctionsResponse) GetTotalCount ¶ added in v1.2.1
func (x *GetInitFunctionsResponse) GetTotalCount() int32
func (*GetInitFunctionsResponse) ProtoMessage ¶ added in v1.2.1
func (*GetInitFunctionsResponse) ProtoMessage()
func (*GetInitFunctionsResponse) ProtoReflect ¶ added in v1.2.1
func (x *GetInitFunctionsResponse) ProtoReflect() protoreflect.Message
func (*GetInitFunctionsResponse) Reset ¶ added in v1.2.1
func (x *GetInitFunctionsResponse) Reset()
func (*GetInitFunctionsResponse) String ¶ added in v1.2.1
func (x *GetInitFunctionsResponse) String() string
type GetPackageDependenciesRequest ¶
type GetPackageDependenciesRequest struct {
// contains filtered or unexported fields
}
获取包依赖关系请求
func (*GetPackageDependenciesRequest) Descriptor
deprecated
func (*GetPackageDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPackageDependenciesRequest.ProtoReflect.Descriptor instead.
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 {
Packages []*PackageNode `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
Dependencies []*PackageDependency `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,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) GetPackages ¶ added in v1.2.1
func (x *GetPackageDependenciesResponse) GetPackages() []*PackageNode
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 GraphEdge ¶
type GraphEdge struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 边唯一ID
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // 源节点ID
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // 目标节点ID
CallType string `protobuf:"bytes,4,opt,name=call_type,json=callType,proto3" json:"call_type,omitempty"` // 调用类型
CallCount int32 `protobuf:"varint,5,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数(动态分析时使用)
CallSites []*CallSite `protobuf:"bytes,6,rep,name=call_sites,json=callSites,proto3" json:"call_sites,omitempty"` // 调用点信息
// contains filtered or unexported fields
}
图边
func (*GraphEdge) Descriptor
deprecated
func (*GraphEdge) GetCallCount ¶ added in v1.2.1
func (*GraphEdge) GetCallSites ¶ added in v1.2.1
func (*GraphEdge) GetCallType ¶ added in v1.2.1
func (*GraphEdge) ProtoMessage ¶
func (*GraphEdge) ProtoMessage()
func (*GraphEdge) ProtoReflect ¶
func (x *GraphEdge) ProtoReflect() protoreflect.Message
type GraphNode ¶
type GraphNode struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 节点唯一ID (function key)
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 显示标签 (function name)
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 包名
FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` // 完整函数名
Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // 函数签名
Doc string `protobuf:"bytes,6,opt,name=doc,proto3" json:"doc,omitempty"` // 文档
Position *NodePosition `protobuf:"bytes,7,opt,name=position,proto3" json:"position,omitempty"` // 位置信息
Metrics *NodeMetrics `protobuf:"bytes,8,opt,name=metrics,proto3" json:"metrics,omitempty"` // 度量信息
Type NodeType `protobuf:"varint,9,opt,name=type,proto3,enum=staticanalysis.v1.NodeType" json:"type,omitempty"` // 节点类型
// contains filtered or unexported fields
}
图节点
func (*GraphNode) Descriptor
deprecated
func (*GraphNode) GetFullName ¶ added in v1.2.1
func (*GraphNode) GetMetrics ¶ added in v1.2.1
func (x *GraphNode) GetMetrics() *NodeMetrics
func (*GraphNode) GetPackage ¶
func (*GraphNode) GetPosition ¶ added in v1.2.1
func (x *GraphNode) GetPosition() *NodePosition
func (*GraphNode) GetSignature ¶ added in v1.2.1
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"`
CallerCount int32 `protobuf:"varint,4,opt,name=caller_count,json=callerCount,proto3" json:"caller_count,omitempty"` // 被调用次数
CalleeCount int32 `protobuf:"varint,5,opt,name=callee_count,json=calleeCount,proto3" json:"callee_count,omitempty"` // 调用其他函数次数
ImportanceScore float32 `protobuf:"fixed32,6,opt,name=importance_score,json=importanceScore,proto3" json:"importance_score,omitempty"` // 重要性评分
// contains filtered or unexported fields
}
热点函数信息
func (*HotFunction) Descriptor
deprecated
func (*HotFunction) Descriptor() ([]byte, []int)
Deprecated: Use HotFunction.ProtoReflect.Descriptor instead.
func (*HotFunction) GetCalleeCount ¶ added in v1.2.1
func (x *HotFunction) GetCalleeCount() int32
func (*HotFunction) GetCallerCount ¶ added in v1.2.1
func (x *HotFunction) GetCallerCount() int32
func (*HotFunction) GetImportanceScore ¶ added in v1.2.1
func (x *HotFunction) GetImportanceScore() float32
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 InitFunction ¶ added in v1.2.1
type InitFunction 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"` // 函数名称(通常是 "init")
Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"` // 所属包名
Position *NodePosition `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"` // 位置信息
Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // 函数签名
Doc string `protobuf:"bytes,6,opt,name=doc,proto3" json:"doc,omitempty"` // 文档注释
FullName string `protobuf:"bytes,7,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` // 完整函数名
// contains filtered or unexported fields
}
Init函数信息
func (*InitFunction) Descriptor
deprecated
added in
v1.2.1
func (*InitFunction) Descriptor() ([]byte, []int)
Deprecated: Use InitFunction.ProtoReflect.Descriptor instead.
func (*InitFunction) GetDoc ¶ added in v1.2.1
func (x *InitFunction) GetDoc() string
func (*InitFunction) GetFullName ¶ added in v1.2.1
func (x *InitFunction) GetFullName() string
func (*InitFunction) GetKey ¶ added in v1.2.1
func (x *InitFunction) GetKey() string
func (*InitFunction) GetName ¶ added in v1.2.1
func (x *InitFunction) GetName() string
func (*InitFunction) GetPackage ¶ added in v1.2.1
func (x *InitFunction) GetPackage() string
func (*InitFunction) GetPosition ¶ added in v1.2.1
func (x *InitFunction) GetPosition() *NodePosition
func (*InitFunction) GetSignature ¶ added in v1.2.1
func (x *InitFunction) GetSignature() string
func (*InitFunction) ProtoMessage ¶ added in v1.2.1
func (*InitFunction) ProtoMessage()
func (*InitFunction) ProtoReflect ¶ added in v1.2.1
func (x *InitFunction) ProtoReflect() protoreflect.Message
func (*InitFunction) Reset ¶ added in v1.2.1
func (x *InitFunction) Reset()
func (*InitFunction) String ¶ added in v1.2.1
func (x *InitFunction) String() string
type NodeMetrics ¶ added in v1.2.1
type NodeMetrics struct {
CallerCount int32 `protobuf:"varint,1,opt,name=caller_count,json=callerCount,proto3" json:"caller_count,omitempty"` // 调用者数量
CalleeCount int32 `protobuf:"varint,2,opt,name=callee_count,json=calleeCount,proto3" json:"callee_count,omitempty"` // 被调用者数量
DepthLevel int32 `protobuf:"varint,3,opt,name=depth_level,json=depthLevel,proto3" json:"depth_level,omitempty"` // 调用深度
Centrality float32 `protobuf:"fixed32,4,opt,name=centrality,proto3" json:"centrality,omitempty"` // 中心性评分
// contains filtered or unexported fields
}
节点度量信息
func (*NodeMetrics) Descriptor
deprecated
added in
v1.2.1
func (*NodeMetrics) Descriptor() ([]byte, []int)
Deprecated: Use NodeMetrics.ProtoReflect.Descriptor instead.
func (*NodeMetrics) GetCalleeCount ¶ added in v1.2.1
func (x *NodeMetrics) GetCalleeCount() int32
func (*NodeMetrics) GetCallerCount ¶ added in v1.2.1
func (x *NodeMetrics) GetCallerCount() int32
func (*NodeMetrics) GetCentrality ¶ added in v1.2.1
func (x *NodeMetrics) GetCentrality() float32
func (*NodeMetrics) GetDepthLevel ¶ added in v1.2.1
func (x *NodeMetrics) GetDepthLevel() int32
func (*NodeMetrics) ProtoMessage ¶ added in v1.2.1
func (*NodeMetrics) ProtoMessage()
func (*NodeMetrics) ProtoReflect ¶ added in v1.2.1
func (x *NodeMetrics) ProtoReflect() protoreflect.Message
func (*NodeMetrics) Reset ¶ added in v1.2.1
func (x *NodeMetrics) Reset()
func (*NodeMetrics) String ¶ added in v1.2.1
func (x *NodeMetrics) String() string
type NodePosition ¶ added in v1.2.1
type NodePosition struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
StartLine int32 `protobuf:"varint,2,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"`
EndLine int32 `protobuf:"varint,3,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
// contains filtered or unexported fields
}
节点位置信息
func (*NodePosition) Descriptor
deprecated
added in
v1.2.1
func (*NodePosition) Descriptor() ([]byte, []int)
Deprecated: Use NodePosition.ProtoReflect.Descriptor instead.
func (*NodePosition) GetEndLine ¶ added in v1.2.1
func (x *NodePosition) GetEndLine() int32
func (*NodePosition) GetFilename ¶ added in v1.2.1
func (x *NodePosition) GetFilename() string
func (*NodePosition) GetStartLine ¶ added in v1.2.1
func (x *NodePosition) GetStartLine() int32
func (*NodePosition) ProtoMessage ¶ added in v1.2.1
func (*NodePosition) ProtoMessage()
func (*NodePosition) ProtoReflect ¶ added in v1.2.1
func (x *NodePosition) ProtoReflect() protoreflect.Message
func (*NodePosition) Reset ¶ added in v1.2.1
func (x *NodePosition) Reset()
func (*NodePosition) String ¶ added in v1.2.1
func (x *NodePosition) String() string
type NodeType ¶ added in v1.2.1
type NodeType int32
节点类型
func (NodeType) Descriptor ¶ added in v1.2.1
func (NodeType) Descriptor() protoreflect.EnumDescriptor
func (NodeType) EnumDescriptor
deprecated
added in
v1.2.1
func (NodeType) Number ¶ added in v1.2.1
func (x NodeType) Number() protoreflect.EnumNumber
func (NodeType) Type ¶ added in v1.2.1
func (NodeType) Type() protoreflect.EnumType
type PackageDependency ¶
type PackageDependency struct {
SourcePackage string `protobuf:"bytes,1,opt,name=source_package,json=sourcePackage,proto3" json:"source_package,omitempty"`
TargetPackage string `protobuf:"bytes,2,opt,name=target_package,json=targetPackage,proto3" json:"target_package,omitempty"`
CallCount int32 `protobuf:"varint,3,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"` // 调用次数
DependencyStrength float32 `protobuf:"fixed32,4,opt,name=dependency_strength,json=dependencyStrength,proto3" json:"dependency_strength,omitempty"` // 依赖强度
CallFunctions []string `protobuf:"bytes,5,rep,name=call_functions,json=callFunctions,proto3" json:"call_functions,omitempty"` // 涉及的调用函数
// contains filtered or unexported fields
}
包依赖关系
func (*PackageDependency) Descriptor
deprecated
func (*PackageDependency) Descriptor() ([]byte, []int)
Deprecated: Use PackageDependency.ProtoReflect.Descriptor instead.
func (*PackageDependency) GetCallCount ¶ added in v1.2.1
func (x *PackageDependency) GetCallCount() int32
func (*PackageDependency) GetCallFunctions ¶ added in v1.2.1
func (x *PackageDependency) GetCallFunctions() []string
func (*PackageDependency) GetDependencyStrength ¶ added in v1.2.1
func (x *PackageDependency) GetDependencyStrength() float32
func (*PackageDependency) GetSourcePackage ¶ added in v1.2.1
func (x *PackageDependency) GetSourcePackage() string
func (*PackageDependency) GetTargetPackage ¶ added in v1.2.1
func (x *PackageDependency) GetTargetPackage() 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 PackageNode ¶ added in v1.2.1
type PackageNode struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
FunctionCount int32 `protobuf:"varint,2,opt,name=function_count,json=functionCount,proto3" json:"function_count,omitempty"`
InternalCallCount int32 `protobuf:"varint,3,opt,name=internal_call_count,json=internalCallCount,proto3" json:"internal_call_count,omitempty"`
ExternalCallCount int32 `protobuf:"varint,4,opt,name=external_call_count,json=externalCallCount,proto3" json:"external_call_count,omitempty"`
Complexity float32 `protobuf:"fixed32,5,opt,name=complexity,proto3" json:"complexity,omitempty"`
SubPackages []string `protobuf:"bytes,6,rep,name=sub_packages,json=subPackages,proto3" json:"sub_packages,omitempty"` // 子包列表
// contains filtered or unexported fields
}
包节点
func (*PackageNode) Descriptor
deprecated
added in
v1.2.1
func (*PackageNode) Descriptor() ([]byte, []int)
Deprecated: Use PackageNode.ProtoReflect.Descriptor instead.
func (*PackageNode) GetComplexity ¶ added in v1.2.1
func (x *PackageNode) GetComplexity() float32
func (*PackageNode) GetExternalCallCount ¶ added in v1.2.1
func (x *PackageNode) GetExternalCallCount() int32
func (*PackageNode) GetFunctionCount ¶ added in v1.2.1
func (x *PackageNode) GetFunctionCount() int32
func (*PackageNode) GetInternalCallCount ¶ added in v1.2.1
func (x *PackageNode) GetInternalCallCount() int32
func (*PackageNode) GetName ¶ added in v1.2.1
func (x *PackageNode) GetName() string
func (*PackageNode) GetSubPackages ¶ added in v1.2.1
func (x *PackageNode) GetSubPackages() []string
func (*PackageNode) ProtoMessage ¶ added in v1.2.1
func (*PackageNode) ProtoMessage()
func (*PackageNode) ProtoReflect ¶ added in v1.2.1
func (x *PackageNode) ProtoReflect() protoreflect.Message
func (*PackageNode) Reset ¶ added in v1.2.1
func (x *PackageNode) Reset()
func (*PackageNode) String ¶ added in v1.2.1
func (x *PackageNode) String() string
type PackageStatistic ¶ added in v1.2.1
type PackageStatistic struct {
PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
FunctionCount int32 `protobuf:"varint,2,opt,name=function_count,json=functionCount,proto3" json:"function_count,omitempty"`
InternalCalls int32 `protobuf:"varint,3,opt,name=internal_calls,json=internalCalls,proto3" json:"internal_calls,omitempty"` // 包内调用
ExternalCalls int32 `protobuf:"varint,4,opt,name=external_calls,json=externalCalls,proto3" json:"external_calls,omitempty"` // 跨包调用
ComplexityScore float32 `protobuf:"fixed32,5,opt,name=complexity_score,json=complexityScore,proto3" json:"complexity_score,omitempty"` // 复杂度评分
// contains filtered or unexported fields
}
包统计信息
func (*PackageStatistic) Descriptor
deprecated
added in
v1.2.1
func (*PackageStatistic) Descriptor() ([]byte, []int)
Deprecated: Use PackageStatistic.ProtoReflect.Descriptor instead.
func (*PackageStatistic) GetComplexityScore ¶ added in v1.2.1
func (x *PackageStatistic) GetComplexityScore() float32
func (*PackageStatistic) GetExternalCalls ¶ added in v1.2.1
func (x *PackageStatistic) GetExternalCalls() int32
func (*PackageStatistic) GetFunctionCount ¶ added in v1.2.1
func (x *PackageStatistic) GetFunctionCount() int32
func (*PackageStatistic) GetInternalCalls ¶ added in v1.2.1
func (x *PackageStatistic) GetInternalCalls() int32
func (*PackageStatistic) GetPackageName ¶ added in v1.2.1
func (x *PackageStatistic) GetPackageName() string
func (*PackageStatistic) ProtoMessage ¶ added in v1.2.1
func (*PackageStatistic) ProtoMessage()
func (*PackageStatistic) ProtoReflect ¶ added in v1.2.1
func (x *PackageStatistic) ProtoReflect() protoreflect.Message
func (*PackageStatistic) Reset ¶ added in v1.2.1
func (x *PackageStatistic) Reset()
func (*PackageStatistic) String ¶ added in v1.2.1
func (x *PackageStatistic) String() string
type SearchFunctionsRequest ¶
type SearchFunctionsRequest struct {
Query string `protobuf:"bytes,1,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) 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)
// 模糊搜索函数
SearchFunctions(ctx context.Context, in *SearchFunctionsRequest, opts ...grpc.CallOption) (*SearchFunctionsResponse, error)
// 获取全局统计信息
GetGlobalStatistics(ctx context.Context, in *GetGlobalStatisticsRequest, opts ...grpc.CallOption) (*GetGlobalStatisticsResponse, error)
// 获取调用图数据
GetCallGraph(ctx context.Context, in *GetCallGraphRequest, opts ...grpc.CallOption) (*GetCallGraphResponse, error)
// 获取包依赖关系
GetPackageDependencies(ctx context.Context, in *GetPackageDependenciesRequest, opts ...grpc.CallOption) (*GetPackageDependenciesResponse, error)
// 获取热点函数分析
GetHotFunctions(ctx context.Context, in *GetHotFunctionsRequest, opts ...grpc.CallOption) (*GetHotFunctionsResponse, error)
// 获取函数详细信息
GetFunctionDetails(ctx context.Context, in *GetFunctionDetailsRequest, opts ...grpc.CallOption) (*GetFunctionDetailsResponse, error)
// 获取函数调用路径
GetFunctionCallPaths(ctx context.Context, in *GetFunctionCallPathsRequest, opts ...grpc.CallOption) (*GetFunctionCallPathsResponse, error)
// 获取Init函数列表
GetInitFunctions(ctx context.Context, in *GetInitFunctionsRequest, opts ...grpc.CallOption) (*GetInitFunctionsResponse, 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 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)
// 模糊搜索函数
SearchFunctions(context.Context, *SearchFunctionsRequest) (*SearchFunctionsResponse, error)
// 获取全局统计信息
GetGlobalStatistics(context.Context, *GetGlobalStatisticsRequest) (*GetGlobalStatisticsResponse, error)
// 获取调用图数据
GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
// 获取包依赖关系
GetPackageDependencies(context.Context, *GetPackageDependenciesRequest) (*GetPackageDependenciesResponse, error)
// 获取热点函数分析
GetHotFunctions(context.Context, *GetHotFunctionsRequest) (*GetHotFunctionsResponse, error)
// 获取函数详细信息
GetFunctionDetails(context.Context, *GetFunctionDetailsRequest) (*GetFunctionDetailsResponse, error)
// 获取函数调用路径
GetFunctionCallPaths(context.Context, *GetFunctionCallPathsRequest) (*GetFunctionCallPathsResponse, error)
// 获取Init函数列表
GetInitFunctions(context.Context, *GetInitFunctionsRequest) (*GetInitFunctionsResponse, error)
// contains filtered or unexported methods
}
StaticAnalysisServer is the server API for StaticAnalysis service. All implementations must embed UnimplementedStaticAnalysisServer for forward compatibility.
静态分析服务定义
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) GetAnalysisTaskStatus ¶
func (UnimplementedStaticAnalysisServer) GetAnalysisTaskStatus(context.Context, *GetAnalysisTaskStatusRequest) (*GetAnalysisTaskStatusResponse, error)
func (UnimplementedStaticAnalysisServer) GetCallGraph ¶ added in v1.2.1
func (UnimplementedStaticAnalysisServer) GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
func (UnimplementedStaticAnalysisServer) GetFunctionCallPaths ¶ added in v1.2.1
func (UnimplementedStaticAnalysisServer) GetFunctionCallPaths(context.Context, *GetFunctionCallPathsRequest) (*GetFunctionCallPathsResponse, error)
func (UnimplementedStaticAnalysisServer) GetFunctionDetails ¶ added in v1.2.1
func (UnimplementedStaticAnalysisServer) GetFunctionDetails(context.Context, *GetFunctionDetailsRequest) (*GetFunctionDetailsResponse, error)
func (UnimplementedStaticAnalysisServer) GetGlobalStatistics ¶ added in v1.2.1
func (UnimplementedStaticAnalysisServer) GetGlobalStatistics(context.Context, *GetGlobalStatisticsRequest) (*GetGlobalStatisticsResponse, error)
func (UnimplementedStaticAnalysisServer) GetHotFunctions ¶
func (UnimplementedStaticAnalysisServer) GetHotFunctions(context.Context, *GetHotFunctionsRequest) (*GetHotFunctionsResponse, error)
func (UnimplementedStaticAnalysisServer) GetInitFunctions ¶ added in v1.2.1
func (UnimplementedStaticAnalysisServer) GetInitFunctions(context.Context, *GetInitFunctionsRequest) (*GetInitFunctionsResponse, 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) 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.