Documentation ¶
Index ¶
Constants ¶
View Source
const ( UIPort = 4000 GQLPort = 8080 RPCPort = 5050 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Name string `yaml:"name"` Description string `yaml:"description"` PortMap *PortMap `yaml:"-"` Author string `yaml:"author"` Version int `yaml:"version"` Language Lang `yaml:"language"` Date string `yaml:"date"` Deps []*Dependency `yaml:"deps"` Models []*Model `yaml:"types"` Funcs []*Func `yaml:"funcs"` }
func (*API) AddDep ¶
func (a *API) AddDep(d *Dependency)
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func NewChecker ¶
func NewChecker() *Checker
func (*Checker) VisitModule ¶
type Dependency ¶
type Field ¶
type Field struct { Name string `yaml:"name"` Description string `yaml:"description"` Type Type `yaml:"type"` Required bool `yaml:"required,omitempty"` Last bool `yaml:"-"` IsArray bool `yaml:"IsArray,omitempty"` Query bool `yaml:"query,omitempty"` Create bool `yaml:"create,omitempty"` Update bool `yaml:"update,omitempty"` Delete bool `yaml:"delete,omitempty"` Subscribe bool `yaml:"subscribe,omitempty"` IsExternal bool `yaml:"is_external,omitempty"` }
Field represents a field on a model
type MetaData ¶
type MetaData struct { ID string `yaml:"id" json:"_id,omitempty"` Rev string `yaml:"rev" json:"_rev,omitempty"` Name string `yaml:"name" json:"name,omitempty"` Description string `yaml:"description" json:"description,omitempty"` Author string `yaml:"author" json:"author,omitempty"` Date string `yaml:"date" json:"date,omitempty"` PortMap *PortMap `yaml:"ports" json:"port_map,omitempty"` }
type Model ¶
type Model struct { IsExternal bool Name string Plural string Description string Query bool Create bool Update bool Delete bool Fields []*Field }
func (*Model) IsPrimitive ¶
Click to show internal directories.
Click to hide internal directories.