Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct { ID string `json:"id"` From string `json:"from"` To string `json:"to"` Attributes map[string]interface{} `json:"attributes"` }
Edge is a JSON format for edges
type IncomingTranslation ¶
type IncomingTranslation struct { Translation string MetaData interface{} }
IncomingTranslation contains the translated query and some possible metadata,
the metadata should have a clearly defined type for each usecase. Each usecase should be responsible for unmarshalling to their own type This really is a usecase for generics, but Go doesn't have them yet.
type ResultFormat ¶
type ResultFormat map[string][]interface{}
ResultFormat is a format for the result, the interface{} can be either an edge or a node
Click to show internal directories.
Click to hide internal directories.