Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator 服务代码生成器
type GeneratorOptions ¶
type GeneratorOptions struct {
OutputPath string
ProjectModule string
ProjectName string
ServiceName string
Servers []string
DbClients []string
// UseWireDI 为真时生成旧式 wire 依赖注入(wire.go + 各层 providers/wire_set.go),
// 与既有 wire 工程向下兼容;默认为假,生成手写装配文件(cmd/server/wiring.go)。
UseWireDI bool
GenerateServer bool
GenerateService bool
GenerateData bool
GenerateMain bool
GenerateMakefile bool
GenerateConfigs bool
}
GeneratorOptions 保存代码生成器的选项。
func (GeneratorOptions) HasBFFService ¶
func (o GeneratorOptions) HasBFFService() bool
HasBFFService checks whether the BFF (Backend For Frontend) service is included in the generator options.
Click to show internal directories.
Click to hide internal directories.