service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 10 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type AnalysisResult added in v1.0.1

type AnalysisResult struct {
	TotalFunctions int `json:"totalFunctions"`
	TotalCalls     int `json:"totalCalls"`
	TotalPackages  int `json:"totalPackages"`
}

type AnalysisService

type AnalysisService struct {
	v1.UnimplementedAnalysisServer
	// contains filtered or unexported fields
}

GreeterService is a greeter service.

func NewAnalysisService

func NewAnalysisService(uc *analysis.AnalysisBiz) *AnalysisService

NewGreeterService new a greeter service.

func (*AnalysisService) AnalyzeDb added in v1.0.1

func (s *AnalysisService) AnalyzeDb(dbPath string) (*AnalysisResult, error)

AnalyzeDb 分析指定的数据库文件

func (*AnalysisService) CheckDatabase added in v1.0.1

func (*AnalysisService) GenerateImage

func (*AnalysisService) GetAllFunctionName

func (*AnalysisService) GetAllGIDs

func (s *AnalysisService) GetAllGIDs(ctx context.Context, in *v1.GetAllGIDsReq) (*v1.GetAllGIDsReply, error)

func (*AnalysisService) GetAnalysis

func (s *AnalysisService) GetAnalysis(ctx context.Context, in *v1.AnalysisRequest) (*v1.AnalysisReply, error)

SayHello implements helloworld.GreeterServer.

func (*AnalysisService) GetAnalysisByGID

func (*AnalysisService) GetDbFiles added in v1.0.1

func (s *AnalysisService) GetDbFiles() ([]DbFile, error)

GetDbFiles 获取数据库文件列表

func (*AnalysisService) GetGidsByFunctionName

func (*AnalysisService) GetParamsByID

func (*AnalysisService) GetTraceGraph added in v1.0.1

func (*AnalysisService) VerifyProjectPath added in v1.0.1

type DbFile added in v1.0.1

type DbFile struct {
	Path       string    `json:"path"`
	Name       string    `json:"name"`
	Size       int64     `json:"size"`
	CreateTime time.Time `json:"createTime"`
}

type GraphData added in v1.0.1

type GraphData struct {
	Nodes []GraphNode `json:"nodes"`
	Edges []GraphEdge `json:"edges"`
}

type GraphEdge added in v1.0.1

type GraphEdge struct {
	Source string `json:"source"`
	Target string `json:"target"`
	Label  string `json:"label"`
}

type GraphNode added in v1.0.1

type GraphNode struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	CallCount int    `json:"callCount"`
}

定义图形数据的结构

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳