Documentation ¶
Index ¶
- func NewApp(path string) *app
- func NewDecoder(builder ModuleBuilder) *decoder
- func NewDecoderBuilder(builder ModuleBuilder) *decoderBuilder
- func NewDecoderTrait(builder ModuleBuilder) *decoderTrait
- func NewGenerator(getModelTrait FileModelTrait, readerMeta ReaderMeta, puller Puller) *generator
- func NewGitPuller() (g *gitPuller)
- func NewModelFileReader() *file
- func NewReaderMeta() *readerMeta
- type Constructor
- type Decoder
- type FileModelTrait
- type InfrastructureBuilder
- type ModelField
- type ModelTrait
- type ModuleBuilder
- type ModuleTrait
- type Puller
- type ReaderMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDecoder ¶
func NewDecoder(builder ModuleBuilder) *decoder
func NewDecoderBuilder ¶
func NewDecoderBuilder(builder ModuleBuilder) *decoderBuilder
func NewDecoderTrait ¶
func NewDecoderTrait(builder ModuleBuilder) *decoderTrait
func NewGenerator ¶
func NewGenerator(getModelTrait FileModelTrait, readerMeta ReaderMeta, puller Puller) *generator
func NewGitPuller ¶
func NewGitPuller() (g *gitPuller)
func NewModelFileReader ¶
func NewModelFileReader() *file
func NewReaderMeta ¶
func NewReaderMeta() *readerMeta
Types ¶
type Constructor ¶
type Constructor struct { GitAccessKey string `json:"git_access_key" yaml:"git_access_key"` Key string `json:"key" yaml:"key"` ModelPath string `json:"model_path" yaml:"model_path"` ResultPath string `json:"result_path" yaml:"result_path"` ModuleName string `json:"module_name" yaml:"module_name"` ExecuteModels []string `json:"execute_models" yaml:"execute_models"` ModuleTraits []ModuleTrait `json:"module_traits" yaml:"module_traits"` Meta map[string]string `json:"meta" yaml:"meta"` IncludeModuleTraits []string `json:"include_module_traits" yaml:"include_module_traits"` IncludeTraits []string `json:"include_traits" yaml:"include_traits"` Traits []ModuleTrait `json:"traits" yaml:"traits"` }
func NewConstructor ¶
func NewConstructor(p string) (b *Constructor, err error)
type Decoder ¶
type Decoder interface { GetBuilder() ModuleBuilder Decode(code string) (encoded string) }
type FileModelTrait ¶
type FileModelTrait interface {
GetModelTrait(file fs.FileInfo, c Constructor) (modelTrait *ModelTrait, err error)
}
type InfrastructureBuilder ¶
type InfrastructureBuilder struct { Constructor ModelTrait []ModuleTrait `json:"model_trait" yaml:"model_trait"` }
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 Constructor) *ModelTrait
type ModuleBuilder ¶
type ModuleBuilder struct { Constructor ModelTrait }
type ModuleTrait ¶
type ReaderMeta ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.