Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Descriptor struct { Key string `json:"key,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` TypeDescriptors []*TypeDescriptor `json:"typeDescriptors,omitempty"` }
func ParseDescriptorFile ¶
func ParseDescriptorFile(file io.Reader) (descriptor *Descriptor)
ParseDescriptorFile will parse the descriptor.json file and make sure to add an `id` field if the user has not already specified it
type Field ¶
type Field struct { Key string `json:"key,omitempty"` Name string `json:"name,omitempty"` Type *WorkflowType `json:"type,omitempty"` FromColumn string `json:"fromColumn,omitempty"` Relationship *Relationship `json:"relationship,omitempty"` }
type Relationship ¶
type SchemaMapping ¶
type SchemaMapping struct { FieldNames []string BackendTypes []interface{} GolangTypes []interface{} WorkflowTypes []interface{} }
SchemaMapping defines the schema of data retrieved from a particular backend
type TypeDescriptor ¶
type TypeDescriptor struct { Key string `json:"key,omitempty"` Name string `json:"name,omitempty"` TableName string `json:"tableName,omitempty"` ColumnAsOptionName string `json:"columnAsOptionName,omitempty"` UniqueIdColumn string `json:"uniqueIdColumn,omitempty"` Fields []*Field `json:"fields,omitempty"` OptionsAvailable bool `json:"optionsAvailable,omitempty"` FetchOneAvailable bool `json:"fetchOneAvailable,omitempty"` }
Click to show internal directories.
Click to hide internal directories.