Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFields ¶
func ValidateFields(cfg any)
Types ¶
type Base ¶
type BaseYaml ¶
type BaseYaml struct { ProjectPath string Name string `yaml:"name"` AppConfig App `yaml:"appConfig"` Models []Model `yaml:"models"` HTTP []HTTPHandler `yaml:"http"` Services []ServiceYaml `yaml:"services"` Database Database `yaml:"db"` }
type Database ¶
type HTTPHandler ¶
type HTTPHandler struct { Name string `yaml:"handlerName"` Method string `yaml:"method"` Path string `yaml:"path"` RequestBody string `yaml:"requestBody"` ResponseBody string `yaml:"responseBody"` Service string `yaml:"service"` }
func (HTTPHandler) Validate ¶
func (c HTTPHandler) Validate()
type Method ¶
type Method struct { Name string Accepts datastructures.OrderedMap[string, string] Returns string }
type MethodYaml ¶
type ServiceYaml ¶
type ServiceYaml struct { Name string `yaml:"name"` Methods []MethodYaml `yaml:"methods"` }
Click to show internal directories.
Click to hide internal directories.