Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectDetector ¶
type ProjectDetector struct {
// contains filtered or unexported fields
}
ProjectDetector 项目结构检测器
func NewProjectDetector ¶
func NewProjectDetector(projectPath string) *ProjectDetector
NewProjectDetector 创建项目检测器
func (*ProjectDetector) DetectServices ¶
func (pd *ProjectDetector) DetectServices() (*ProjectServices, error)
DetectServices 检测现有服务类型
func (*ProjectDetector) GetProjectInfo ¶
func (pd *ProjectDetector) GetProjectInfo() (*entity.Project, error)
GetProjectInfo 获取项目信息
type ProjectServices ¶
ProjectServices 项目服务检测结果
type ServiceGenerator ¶
type ServiceGenerator struct {
// contains filtered or unexported fields
}
ServiceGenerator 服务生成器
func NewServiceGenerator ¶
func NewServiceGenerator(projectPath string, projectInfo *entity.Project) *ServiceGenerator
NewServiceGenerator 创建服务生成器
func (*ServiceGenerator) AddService ¶
func (sg *ServiceGenerator) AddService(serviceType string, verbose bool) error
AddService 添加指定类型的服务
Click to show internal directories.
Click to hide internal directories.