v1

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const OperationStaticAnalysisAnalyzeDbFile = "/staticanalysis.v1.StaticAnalysis/AnalyzeDbFile"
View Source
const OperationStaticAnalysisAnalyzeProjectPath = "/staticanalysis.v1.StaticAnalysis/AnalyzeProjectPath"
View Source
const OperationStaticAnalysisGetFunctionAnalysis = "/staticanalysis.v1.StaticAnalysis/GetFunctionAnalysis"
View Source
const OperationStaticAnalysisGetFunctionCallGraph = "/staticanalysis.v1.StaticAnalysis/GetFunctionCallGraph"
View Source
const OperationStaticAnalysisGetHotFunctions = "/staticanalysis.v1.StaticAnalysis/GetHotFunctions"
View Source
const OperationStaticAnalysisGetStaticDbFiles = "/staticanalysis.v1.StaticAnalysis/GetStaticDbFiles"

Variables

View Source
var File_staticanalysis_v1_staticanalysis_proto protoreflect.FileDescriptor
View Source
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 (*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 (*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 (*CloneGitLabRepositoryRequest) Reset

func (x *CloneGitLabRepositoryRequest) Reset()

func (*CloneGitLabRepositoryRequest) 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 (*CloneGitLabRepositoryResponse) Reset

func (x *CloneGitLabRepositoryResponse) Reset()

func (*CloneGitLabRepositoryResponse) 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 (*GetAnalysisTaskStatusRequest) Reset

func (x *GetAnalysisTaskStatusRequest) Reset()

func (*GetAnalysisTaskStatusRequest) 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 (*GetAnalysisTaskStatusResponse) Reset

func (x *GetAnalysisTaskStatusResponse) Reset()

func (*GetAnalysisTaskStatusResponse) 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 (*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 (*GetFunctionAnalysisReply_FunctionNode) GetCallCount

func (x *GetFunctionAnalysisReply_FunctionNode) GetCallCount() int32

func (*GetFunctionAnalysisReply_FunctionNode) GetChildren

func (*GetFunctionAnalysisReply_FunctionNode) GetId

func (*GetFunctionAnalysisReply_FunctionNode) GetName

func (*GetFunctionAnalysisReply_FunctionNode) GetPackage

func (*GetFunctionAnalysisReply_FunctionNode) ProtoMessage

func (*GetFunctionAnalysisReply_FunctionNode) ProtoMessage()

func (*GetFunctionAnalysisReply_FunctionNode) ProtoReflect

func (*GetFunctionAnalysisReply_FunctionNode) Reset

func (*GetFunctionAnalysisReply_FunctionNode) 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 (*GetFunctionCallGraphReply) GetNodes

func (*GetFunctionCallGraphReply) ProtoMessage

func (*GetFunctionCallGraphReply) ProtoMessage()

func (*GetFunctionCallGraphReply) ProtoReflect

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"`                     // 源节点ID
	Target   string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`                     // 目标节点ID
	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 (*GetFunctionCallGraphReply_GraphEdge) GetLabel

func (*GetFunctionCallGraphReply_GraphEdge) GetSource

func (*GetFunctionCallGraphReply_GraphEdge) GetTarget

func (*GetFunctionCallGraphReply_GraphEdge) ProtoMessage

func (*GetFunctionCallGraphReply_GraphEdge) ProtoMessage()

func (*GetFunctionCallGraphReply_GraphEdge) ProtoReflect

func (*GetFunctionCallGraphReply_GraphEdge) Reset

func (*GetFunctionCallGraphReply_GraphEdge) String

type GetFunctionCallGraphReply_GraphNode

type GetFunctionCallGraphReply_GraphNode 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"`        // 平均耗时
	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 (*GetFunctionCallGraphReply_GraphNode) GetCallCount

func (x *GetFunctionCallGraphReply_GraphNode) GetCallCount() int32

func (*GetFunctionCallGraphReply_GraphNode) GetId

func (*GetFunctionCallGraphReply_GraphNode) GetName

func (*GetFunctionCallGraphReply_GraphNode) GetNodeType

func (*GetFunctionCallGraphReply_GraphNode) GetPackage

func (*GetFunctionCallGraphReply_GraphNode) ProtoMessage

func (*GetFunctionCallGraphReply_GraphNode) ProtoMessage()

func (*GetFunctionCallGraphReply_GraphNode) ProtoReflect

func (*GetFunctionCallGraphReply_GraphNode) Reset

func (*GetFunctionCallGraphReply_GraphNode) String

type GetFunctionCallGraphReq

type GetFunctionCallGraphReq struct {
	FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` // 函数名称
	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) GetFunctionName

func (x *GetFunctionCallGraphReq) GetFunctionName() 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"` // 函数唯一标识
	// 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) GetFunctionKey

func (x *GetFunctionDownstreamRequest) GetFunctionKey() string

func (*GetFunctionDownstreamRequest) ProtoMessage

func (*GetFunctionDownstreamRequest) ProtoMessage()

func (*GetFunctionDownstreamRequest) ProtoReflect

func (*GetFunctionDownstreamRequest) Reset

func (x *GetFunctionDownstreamRequest) Reset()

func (*GetFunctionDownstreamRequest) 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 (*GetFunctionDownstreamResponse) Reset

func (x *GetFunctionDownstreamResponse) Reset()

func (*GetFunctionDownstreamResponse) 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"` // 函数唯一标识
	// 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 (*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 (*GetFunctionFullChainResponse) Reset

func (x *GetFunctionFullChainResponse) Reset()

func (*GetFunctionFullChainResponse) 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"` // 函数唯一标识
	// 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) GetFunctionKey

func (x *GetFunctionUpstreamRequest) GetFunctionKey() string

func (*GetFunctionUpstreamRequest) ProtoMessage

func (*GetFunctionUpstreamRequest) ProtoMessage()

func (*GetFunctionUpstreamRequest) ProtoReflect

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 (*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 (*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 (*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 (*GetHotFunctionsReply_HotFunction) Reset

func (*GetHotFunctionsReply_HotFunction) 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 (*GetPackageDependenciesRequest) Reset

func (x *GetPackageDependenciesRequest) Reset()

func (*GetPackageDependenciesRequest) 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 (*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 (*GetPackageDependenciesResponse) Reset

func (x *GetPackageDependenciesResponse) Reset()

func (*GetPackageDependenciesResponse) 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"`                   // 数据库路径
	FunctionName string `protobuf:"bytes,2,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` // 函数名称
	// 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) GetFunctionName added in v1.1.2

func (x *GetTreeGraphReq) GetFunctionName() 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"` // 源节点ID
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` // 目标节点ID
	Value  int32  `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`  // 边权重
	// contains filtered or unexported fields
}

图边

func (*GraphEdge) Descriptor deprecated

func (*GraphEdge) Descriptor() ([]byte, []int)

Deprecated: Use GraphEdge.ProtoReflect.Descriptor instead.

func (*GraphEdge) GetSource

func (x *GraphEdge) GetSource() string

func (*GraphEdge) GetTarget

func (x *GraphEdge) GetTarget() string

func (*GraphEdge) GetValue

func (x *GraphEdge) GetValue() int32

func (*GraphEdge) ProtoMessage

func (*GraphEdge) ProtoMessage()

func (*GraphEdge) ProtoReflect

func (x *GraphEdge) ProtoReflect() protoreflect.Message

func (*GraphEdge) Reset

func (x *GraphEdge) Reset()

func (*GraphEdge) String

func (x *GraphEdge) String() string

type GraphNode

type GraphNode 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"` // 调用次数
	// contains filtered or unexported fields
}

图节点

func (*GraphNode) Descriptor deprecated

func (*GraphNode) Descriptor() ([]byte, []int)

Deprecated: Use GraphNode.ProtoReflect.Descriptor instead.

func (*GraphNode) GetCallCount

func (x *GraphNode) GetCallCount() int32

func (*GraphNode) GetId

func (x *GraphNode) GetId() string

func (*GraphNode) GetName

func (x *GraphNode) GetName() string

func (*GraphNode) GetPackage

func (x *GraphNode) GetPackage() string

func (*GraphNode) ProtoMessage

func (*GraphNode) ProtoMessage()

func (*GraphNode) ProtoReflect

func (x *GraphNode) ProtoReflect() protoreflect.Message

func (*GraphNode) Reset

func (x *GraphNode) Reset()

func (*GraphNode) String

func (x *GraphNode) String() string

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 (*ListGitLabRepositoriesRequest) Reset

func (x *ListGitLabRepositoriesRequest) Reset()

func (*ListGitLabRepositoriesRequest) 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 (*ListGitLabRepositoriesResponse) Reset

func (x *ListGitLabRepositoriesResponse) Reset()

func (*ListGitLabRepositoriesResponse) 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.

静态分析服务定义

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 (*StaticAnalysisHTTPClientImpl) AnalyzeProjectPath

func (*StaticAnalysisHTTPClientImpl) GetFunctionAnalysis

func (*StaticAnalysisHTTPClientImpl) GetFunctionCallGraph

func (*StaticAnalysisHTTPClientImpl) GetHotFunctions

func (*StaticAnalysisHTTPClientImpl) GetStaticDbFiles

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) Descriptor() ([]byte, []int)

Deprecated: Use TreeNode.ProtoReflect.Descriptor instead.

func (*TreeNode) GetChildren added in v1.1.2

func (x *TreeNode) GetChildren() []*TreeNode

func (*TreeNode) GetCollapsed added in v1.1.2

func (x *TreeNode) GetCollapsed() bool

func (*TreeNode) GetName added in v1.1.2

func (x *TreeNode) GetName() string

func (*TreeNode) GetValue added in v1.1.2

func (x *TreeNode) GetValue() int64

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

func (*TreeNode) Reset added in v1.1.2

func (x *TreeNode) Reset()

func (*TreeNode) String added in v1.1.2

func (x *TreeNode) String() string

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) AnalyzeProjectPath

func (UnimplementedStaticAnalysisServer) GetFunctionAnalysis

func (UnimplementedStaticAnalysisServer) GetFunctionCallGraph

func (UnimplementedStaticAnalysisServer) GetFunctionUpstream

func (UnimplementedStaticAnalysisServer) GetHotFunctions

func (UnimplementedStaticAnalysisServer) GetStaticDbFiles

func (UnimplementedStaticAnalysisServer) GetTreeGraph added in v1.1.2

func (UnimplementedStaticAnalysisServer) SearchFunctions

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.

Jump to

Keyboard shortcuts

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