Documentation ¶
Index ¶
- Variables
- func Gen(_ *cobra.Command, _ []string) error
- func GetApiServiceName(apiDirName string) string
- func GetMainApiFilePath(apiDirName string) (string, bool, error)
- func GetProtoFilepath(protoDirPath string) ([]string, error)
- func RemoveExtraFiles(wd string)
- type ApiFileTypes
- type HandlerFile
- type ImportLines
- type JzeroApi
- type JzeroRpc
- type JzeroSql
- type LogicFile
- type RegisterLines
- type ServerFile
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Style string RemoveSuffix bool ChangeReplaceTypes bool )
Functions ¶
func GetApiServiceName ¶
func GetProtoFilepath ¶ added in v0.20.0
func RemoveExtraFiles ¶ added in v0.20.0
func RemoveExtraFiles(wd string)
Types ¶
type ApiFileTypes ¶
type HandlerFile ¶
type ImportLines ¶
type ImportLines []string
func (ImportLines) String ¶
func (l ImportLines) String() string
type JzeroApi ¶
type JzeroRpc ¶
type JzeroRpc struct { Wd string Module string Style string RemoveSuffix bool Etc string // 配置文件路径 }
func (*JzeroRpc) GetAllLogicFiles ¶ added in v0.20.0
func (*JzeroRpc) GetAllServerFiles ¶ added in v0.20.0
func (jr *JzeroRpc) GetAllServerFiles(protoSpec rpcparser.Proto) ([]ServerFile, error)
type JzeroSql ¶
type RegisterLines ¶
type RegisterLines []string
func (RegisterLines) String ¶
func (l RegisterLines) String() string
type ServerFile ¶
type ServerFile struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.