Discover Packages
github.com/merakiVE/CEHDUN
core
types
package
Version:
v0.0.0-...-78845b4
Opens a new window with list of versions in this module.
Published: Apr 2, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Action struct {
Name string `json:"name"`
Description string `json:"description"`
Method string `json:"method"`
Route string `json:"route"`
Params []Param `json:"params,omitempty"`
Responses []Response `json:"responses"`
Payload Payload `json:"payload,omitempty"`
}
type Api struct {
Name string `json:"name, omitempty"`
Title string `json:"title, omitempty"`
Description string `json:"description,omitempty"`
Contact Contact `json:"contact"`
Host string `json:"host, omitempty"`
Port int `json:"port"`
BasePath string `json:"basePath, omitempty"`
}
type Attribute struct {
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description,omitempty"`
Required bool `json:"required"`
}
type Column struct {
Name string `json:"name"`
DataType string `json:"data_type"`
}
type Contact struct {
Name string `json:"name"`
Email string `json:"email"`
}
type DataBase struct {
Host string `json:"host"`
User string `json:"user"`
Password string `json:"password"`
Type string `json:"type"`
Name string `json:"name"`
Port int `json:"port"`
}
type DatabaseSchema struct {
Tables []Table `json:"tables"`
}
type Error struct {
Message string `json:"message"`
}
type JsonObject map[string ]interface{}
type MediaType struct {
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Attributes []Attribute `json:"attributes"`
Views []View `json:"views"`
}
type Param struct {
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description,omitempty"`
}
type Payload struct {
Name string `json:"name"`
Attributes []Attribute `json:"attributes"`
}
type Resource struct {
Namegroup string `json:"namegroup"`
Basepath string `json:"basepath"`
MediaType MediaType `json:"mediatype"`
Actions []Action `json:"actions"`
}
type Response struct {
Name string `json:"name"`
}
type ResponseAPI struct {
Message string `json:"message"`
Data interface{} `json:"data"`
Errors interface{} `json:"errors"`
}
type ResultSQLJson struct {
ResultJson string
}
type Table struct {
Name string `json:"name"`
Columns []Column `json:"columns"`
}
type Template struct {
Api Api `json:"api"`
Resources []Resource `json:"resources"`
}
type Timestamps struct {
CreatedAt time .Time `json:"created_at" on_create:"set,auto_now"`
UpdatedAt time .Time `json:"updated_at"`
}
type View struct {
Name string `json:"name"`
Attributes []Attribute `json:"attributes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.