Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator 代码生成器
type Options ¶
type Options struct {
TemplateFS *embed.FS // 模板文件系统
OutputDir string // 输出目录
ImportPath string // 项目导入路径
ServiceName string // 服务名称 (可选,默认从IDL获取)
Protocols []string // 支持的协议 (http, grpc等)
WithConfig bool // 是否生成配置文件
WithDocs bool // 是否生成文档
WithTests bool // 是否生成测试文件
}
Options 生成器配置选项
Click to show internal directories.
Click to hide internal directories.