Documentation ¶
Index ¶
- type Attribute
- type Command
- type CommandConfigSetting
- type ConfigVariable
- type ConfigVariableType
- type EndPointsMethod
- type Endpoints
- type Enum
- type ExternalType
- type GoCraft
- type Implementor
- type Interface
- type Method
- type Model
- type Package
- type PackageType
- type Parameter
- type Repository
- type UseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { Name string `json:"name" mapstructure:"name"` Type string `json:"type" mapstructure:"type"` Package string `json:"package" mapstructure:"package"` TemplateType string `json:"template_type" mapstructure:"template_type"` IsPointer bool `json:"is_pointer" mapstructure:"is_pointer"` IsUseCase bool `json:"is_use_case" mapstructure:"is_use_case"` IsRepository bool `json:"is_repository" mapstructure:"is_repository"` IsEntity bool `json:"is_entity" mapstructure:"is_entity"` IsParameter bool `json:"is_parameter" mapstructure:"is_parameter"` IsAddGetter bool `json:"is_add_getter" mapstructure:"is_add_getter"` IsAddSetter bool `json:"is_add_setter" mapstructure:"is_add_setter"` IsInterfaceMethod *bool `json:"is_interface_method" mapstructure:"is_interface_method"` }
func (*Attribute) AllMethods ¶
type Command ¶
type Command struct { Name string `json:"name" mapstructure:"name"` ConfigSetting CommandConfigSetting `json:"config_setting" mapstructure:"config_setting"` }
type CommandConfigSetting ¶
type CommandConfigSetting struct { Package string `json:"package" mapstructure:"package"` ConfigVariables []ConfigVariable `json:"variables" mapstructure:"variables"` }
type ConfigVariable ¶
type ConfigVariable struct { Name string `json:"name" mapstructure:"name"` Key string `json:"key" mapstructure:"key"` Default string `json:"default" mapstructure:"default"` Type ConfigVariableType `json:"type" mapstructure:"type"` }
type ConfigVariableType ¶
type ConfigVariableType string
const ( ConfigVariableTypeString ConfigVariableType = "string" ConfigVariableTypeInt ConfigVariableType = "int" ConfigVariableTypeFloat64 ConfigVariableType = "float64" )
func (ConfigVariableType) String ¶
func (t ConfigVariableType) String() string
type EndPointsMethod ¶
type Endpoints ¶
type Endpoints struct { Methods []EndPointsMethod `json:"end_point_methods" mapstructure:"end_point_methods"` Implementors []Implementor `json:"implementors" mapstructure:"implementors"` }
type ExternalType ¶
type ExternalType struct { Name string `json:"name" mapstructure:"name"` Type string `json:"type" mapstructure:"type"` PackageName string `json:"package_name" mapstructure:"package_name"` GitPath string `json:"git_path" mapstructure:"git_path"` Version string `json:"version" mapstructure:"version"` ReplacePath string `json:"replace_path" mapstructure:"replace_path"` }
type GoCraft ¶
type GoCraft struct { Prefix string `json:"prefix" mapstructure:"prefix"` PackageName string `json:"package_name" mapstructure:"package_name"` PackagePath string `json:"package_path" mapstructure:"package_path"` IsEnableGoModules bool `json:"is_enable_go_modules" mapstructure:"is_enable_go_modules"` Architecture architecture.ProjectArchitecture `json:"architecture" mapstructure:"architecture"` Structure interface{} `json:"structure" mapstructure:"structure"` ExternalTypes []ExternalType `json:"external_types" mapstructure:"external_types"` }
func (*GoCraft) UpperCasePrefix ¶
type Implementor ¶
type Implementor struct { Name string `json:"name" mapstructure:"name"` Attributes []Attribute `json:"attributes" mapstructure:"attributes"` Parameters []Parameter `json:"parameters" mapstructure:"parameters"` Methods []Method `json:"methods" mapstructure:"methods"` }
func (*Implementor) AllMethods ¶
func (i *Implementor) AllMethods() []Method
func (*Implementor) AllParameters ¶
func (i *Implementor) AllParameters() []Parameter
type Interface ¶
type Interface struct { Name string `json:"name" mapstructure:"name"` DefaultImplementor *Implementor `json:"default_implementor" mapstructure:"default_implementor"` Implementors []Implementor `json:"implementors" mapstructure:"implementors"` }
func (*Interface) AllMethods ¶
type Method ¶
type Method struct { Name string `json:"name" mapstructure:"name"` Parameters []Parameter `json:"parameters" mapstructure:"parameters"` ReturnParameters []Parameter `json:"return_parameters" mapstructure:"return_parameters"` IsInterfaceMethod bool `json:"is_interface_method" mapstructure:"is_interface_method"` Body string `json:"body" mapstructure:"body"` BodyTemplate string `json:"body_template" mapstructure:"body_template"` IsGetter bool `json:"is_getter" mapstructure:"is_getter"` IsSetter bool `json:"is_setter" mapstructure:"is_setter"` }
type Model ¶
type Model struct { Name string `json:"name" mapstructure:"name"` Attributes []Attribute `json:"attributes" mapstructure:"attributes"` Parameters []Parameter `json:"parameters" mapstructure:"parameters"` Methods []Method `json:"methods" mapstructure:"methods"` HasConstructor bool `json:"has_constructor" mapstructure:"has_constructor"` }
func (*Model) AllMethods ¶
func (*Model) AllParameters ¶
type Package ¶
type Package struct { Name string `json:"name" mapstructure:"name"` Type PackageType `json:"type" mapstructure:"type"` CustomPath string `json:"custom_path" mapstructure:"custom_path"` IsAddPrefix bool `json:"is_add_prefix" mapstructure:"is_add_prefix"` IsEnableVersioning bool `json:"is_enable_versioning" mapstructure:"is_enable_versioning"` Interfaces []Interface `json:"interfaces" mapstructure:"interfaces"` Enums []Enum `json:"enums" mapstructure:"enums"` }
type PackageType ¶
type PackageType string
const ( PackageTypePackage PackageType = "pkg" PackageTypeInternal PackageType = "internal" PackageTypeCustom PackageType = "custom" )
func (PackageType) String ¶
func (t PackageType) String() string
type Parameter ¶
type Parameter struct { Name string `json:"name" mapstructure:"name"` Type string `json:"type" mapstructure:"type"` Package string `json:"package" mapstructure:"package"` TemplateType string `json:"template_type" mapstructure:"template_type"` IsUseCase bool `json:"is_use_case" mapstructure:"is_use_case"` IsRepository bool `json:"is_repository" mapstructure:"is_repository"` IsEntity bool `json:"is_entity" mapstructure:"is_entity"` IsPointer bool `json:"is_pointer" mapstructure:"is_pointer"` }
type Repository ¶
type Repository struct { Name string `json:"name" mapstructure:"name"` IsNotConvertCase bool `json:"is_not_convert_case" mapstructure:"is_not_convert_case"` Implementors []Implementor `json:"implementors" mapstructure:"implementors"` }
type UseCase ¶
type UseCase struct { Name string `json:"name" mapstructure:"name"` IsNotConvertCase bool `json:"is_not_convert_case" mapstructure:"is_not_convert_case"` Implementors []Implementor `json:"implementors" mapstructure:"implementors"` }
Click to show internal directories.
Click to hide internal directories.