decode

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 CSV added in v0.2.2

func CSV(filename string) ([]fiware.EntityType, []fiware.Entity)

func Decode

func Decode(outfile, verticalName, subserviceName string, paths []string, format string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL