Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISpecification ¶
type APISpecification struct {
FilePath string
ServiceName string
Endpoints []Endpoint
Types []string
}
func ParseAPISpecification ¶
func ParseAPISpecification(apiFile string) (*APISpecification, error)
type ConfigFile ¶
ConfigFile represents a configuration file
type DatabaseModel ¶
type DatabaseModel struct {
TableName string
Fields []ModelField
PrimaryKey string
}
func ParseTableSchema ¶
func ParseTableSchema(ddl string) (*DatabaseModel, error)
func (*DatabaseModel) GetFieldNames ¶
func (m *DatabaseModel) GetFieldNames() []string
type Dependency ¶
Dependency represents a project dependency
type EndpointInfo ¶
EndpointInfo represents an API endpoint
type ProjectAnalysis ¶
type ProjectAnalysis struct {
ProjectPath string
Services []ServiceInfo
Dependencies []Dependency
Configs []ConfigFile
Summary ProjectSummary
}
ProjectAnalysis represents a comprehensive analysis of a go-zero project
func ScanProject ¶
func ScanProject(projectPath string) (*ProjectAnalysis, error)
ScanProject analyzes a go-zero project directory
type ProjectSummary ¶
type ProjectSummary struct {
TotalServices int
APIServices int
RPCServices int
ModelServices int
TotalEndpoints int
TotalRPCMethods int
TotalDependencies int
GoZeroVersion string
}
ProjectSummary provides high-level statistics
type RPCMethodInfo ¶
RPCMethodInfo represents an RPC method
type RPCService ¶
func ParseProtoSpecification ¶
func ParseProtoSpecification(protoFile string) (*RPCService, error)
type ServiceInfo ¶
type ServiceInfo struct {
Name string
Type string // "api", "rpc", or "model"
Path string
SpecFile string
Endpoints []EndpointInfo
RPCMethods []RPCMethodInfo
}
ServiceInfo represents information about a service in the project
Click to show internal directories.
Click to hide internal directories.