Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProjectTypeMono = iota ProjectTypeSubMono ProjectTypeSingle )
Variables ¶
This section is empty.
Functions ¶
func GenSubMono ¶
Types ¶
type DataTmpl ¶
func NewDataTmpl ¶
type LogTmpl ¶
func NewLogTmpl ¶
func NewLogTmpl(appPkgPath, logPath string, options ...LogTmplOption) *LogTmpl
type LogTmplOption ¶
type LogTmplOption func(*LogTmpl)
type Project ¶
type Project struct { Type ProjectType Name string IsBff bool }
func NewProject ¶
func NewProject() *Project
func (*Project) SetProjectType ¶
type ProjectType ¶
type ProjectType int
type ServerTmpl ¶
func NewServerTmpl ¶
func NewServerTmpl(appPkgPath, serverPath string, options ...ServerTmplOption) *ServerTmpl
func (ServerTmpl) Generate ¶
func (st ServerTmpl) Generate() error
type ServerTmplOption ¶
type ServerTmplOption func(*ServerTmpl)
func NonGenGrpc ¶
func NonGenGrpc() ServerTmplOption
func NonGenHttp ¶
func NonGenHttp() ServerTmplOption
Click to show internal directories.
Click to hide internal directories.