Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDecoder ¶
func NewDecoder(blueprint *Blueprint) *decoder
func NewModelScanner ¶
func NewModelScanner(c Config) *modelScanner
Types ¶
type Config ¶
type Config struct { Key string `json:"key"` ModelPath string `json:"model_path"` ResultPath string `json:"result_path"` ModuleName string `json:"module_name"` ExecuteModels []string `json:"execute_models"` ModuleTraits []ModuleTrait `json:"module_traits"` }
func OpenConfig ¶
type ModelField ¶
type ModelTrait ¶
type ModelTrait struct { ModelFields []ModelField `json:"model_fields"` Model string `json:"model"` ModelSnake string `json:"model_snake"` ModelCamel string `json:"model_camel"` }
func NewModelTraitFromFile ¶
func NewModelTraitFromFile(fl io.Reader, modelName string, config Config) *ModelTrait
type ModuleTrait ¶
type Trait ¶
type Trait struct { Meta map[string]interface{} `json:"meta"` ModelTrait ModuleTrait }
Click to show internal directories.
Click to hide internal directories.