Documentation ¶
Index ¶
- Constants
- func Asset(filename string) ([]fiware.EntityType, []fiware.Entity)
- func Builder(filename string) ([]fiware.EntityType, []fiware.Entity)
- func CSV(filename string) ([]fiware.EntityType, []fiware.Entity)
- func Decode(outfile, verticalName, subserviceName string, paths []string, format string) error
- func Markdown(filename string) ([]fiware.EntityType, []fiware.Entity)
- func NGSI(filename string) ([]fiware.EntityType, []fiware.Entity)
- func SkipBOM(filename string) (io.ReadCloser, error)
Constants ¶
View Source
const ( FORMAT_BUILDER = "builder" FORMAT_NGSI = "ngsi" FORMAT_ASSET = "asset" )
Variables ¶
This section is empty.
Functions ¶
func Asset ¶ added in v0.4.9
func Asset(filename string) ([]fiware.EntityType, []fiware.Entity)
Get a list of models from NGSIv2 formatted file
func Builder ¶ added in v0.4.4
func Builder(filename string) ([]fiware.EntityType, []fiware.Entity)
Get a list of models from Builder file.
func Markdown ¶ added in v0.4.9
func Markdown(filename string) ([]fiware.EntityType, []fiware.Entity)
Get a list of models from README file. Expects tables with a header like the following: |Atributo|Tipo|Descripción|Información adicional|Ud|Rango| Recognizes these particular pieces of information: - atributo = id: Entity ID - atributo = tipo|type: entity type - tipo: Text, TextUnrestricted, Number, Reference, geo:json, geox:json ... - Any other column: "Ejemplo:", "Ejemplo=", "Valor:", "Valor=",...
func NGSI ¶ added in v0.2.2
func NGSI(filename string) ([]fiware.EntityType, []fiware.Entity)
Get a list of models from NGSIv2 formatted file
func SkipBOM ¶ added in v0.3.9
func SkipBOM(filename string) (io.ReadCloser, error)
skips possible BOM at beginning of utf-8 file. See http://www.unicode.org/faq/utf_bom.html#BOM
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.