Documentation ¶
Index ¶
- Variables
- func APIParamTypeDecToString(t *APIParamType) string
- func APIParamTypeToString(t *APIParamType) string
- func APIParamTypeUseRef(t *APIParamType) string
- func Debug(s string, p ...interface{})
- func Err(e error)
- func Log(s string, p ...interface{})
- func Run()
- type API
- type APIField
- type APIFieldTag
- type APIMethod
- type APIParamType
- type APIPath
- type APIType
- type APIVerb
Constants ¶
This section is empty.
Variables ¶
View Source
var CLI struct { Yaml struct { Src string `arg help:"Source Dir"` Fname string `arg help:"File to be generated"` } `cmd help:"Gens YAML metamodel"` Goserver struct { Src string `arg help:"Source Dir"` } `cmd help:"Gens GO Server impl"` //Gin struct { // Src string `arg help:"Source Dir"` //} `cmd help:"Gens Gin Server impl"` Gocli struct { Src string `arg help:"Source Dir"` Dst string `arg help:"Dst file"` } `cmd help:"Gens Go Cli impl"` Pycli struct { Src string `arg help:"Source Dir"` Dst string `arg help:"Dst file"` } `cmd help:"Gens Python Cli impl"` Ts struct { Src string `arg help:"Source Dir"` Dst string `arg help:"Dst file"` } `cmd help:"Gens Typescript Cli impl"` Http struct { Src string `arg help:"Source Dir"` Dst string `arg help:"Dst file"` } `cmd help:"Gens Http call impl"` }
Functions ¶
func APIParamTypeDecToString ¶
func APIParamTypeDecToString(t *APIParamType) string
func APIParamTypeToString ¶
func APIParamTypeToString(t *APIParamType) string
func APIParamTypeUseRef ¶
func APIParamTypeUseRef(t *APIParamType) string
Types ¶
type API ¶
type API struct { BasePath string `yaml:"basepath,omitempty"` Host string `yaml:"host,omitempty"` Types map[string]*APIType `yaml:"types,omitempty"` Methods map[string]*APIMethod `yaml:"methods,omitempty"` Namespace string `yaml:"namespace"` Imports map[string]string `yaml:"imports"` UsedImportsTypes map[string]string `yaml:"used_imports_types"` UsedImportsFunctions map[string]string `yaml:"used_imports_functions"` SortedPaths []*APIPath `yaml:"-"` Paths map[string]*APIPath `yaml:"paths"` }
type APIField ¶
type APIFieldTag ¶
type APIMethod ¶
type APIMethod struct { Name string `yaml:"name"` Desc string `yaml:"desc"` Verb string `yaml:"verb"` Path string `yaml:"path"` Perm string `yaml:"perm"` Raw bool `yaml:"raw"` OpID string `yaml:"op_id"` ReqType *APIParamType ResType *APIParamType }
type APIParamType ¶
Click to show internal directories.
Click to hide internal directories.