Documentation ¶
Index ¶
- Constants
- func CreateEventsString(tables []Table, c Converter) string
- func CreateGettersString(tables []Table, c Converter) string
- func CreateHelper(tableName string, fields []Field, sigleton bool, enums []Enum) string
- func CreateHelperStruct() string
- func CreateHelpersString(tables []Table, enums []Enum) string
- func CreateTablesString(tables []Table) string
- func CreateTypesString(mainStruct string) string
- func GenerateFiles(mainStruct string, mudConfig []byte, path string) error
- func GetEnumKeys(enums []Enum) []string
- func MudConfigToJSON(mudConfig []byte) []byte
- type Converter
- func (c *Converter) CreateEventFunction(tableName string, fields []Field) string
- func (c Converter) GetRows(tableName string, fields []Field) string
- func (c Converter) MultiValueTable(tableName string, fields []Field, singleton bool) string
- func (c Converter) SingleValueInt(tableName string) string
- func (c Converter) SingleValueString(tableName string) string
- type Enum
- type Field
- type Table
Constants ¶
View Source
const ( BoolType = "bool" Bytes32Type = "bytes32" StringType = "string" Int64Type = "int64" )
View Source
const PredictionObject = "Prediction"
Variables ¶
This section is empty.
Functions ¶
func CreateEventsString ¶
func CreateGettersString ¶
func CreateHelper ¶ added in v0.2.0
func CreateHelperStruct ¶ added in v0.2.0
func CreateHelperStruct() string
func CreateHelpersString ¶ added in v0.2.0
func CreateTablesString ¶ added in v0.3.0
func CreateTypesString ¶
func GetEnumKeys ¶ added in v0.2.0
func MudConfigToJSON ¶
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func (*Converter) CreateEventFunction ¶
func (Converter) MultiValueTable ¶
func (Converter) SingleValueInt ¶
func (Converter) SingleValueString ¶
type Enum ¶
func GetEnumsFromJSON ¶
Click to show internal directories.
Click to hide internal directories.