Documentation ¶
Index ¶
- Constants
- func ExistsConfig() bool
- func WriteConfig(cfg *Config) error
- type Config
- func (cfg *Config) ContextImportPath() string
- func (cfg *Config) DAOPackageName() string
- func (cfg *Config) DataStore() string
- func (cfg *Config) EntityPackageName() string
- func (cfg *Config) EntityPlugins() []string
- func (cfg *Config) ModelPackageName() string
- func (cfg *Config) OutputPathWithPackage(pkg string) string
- func (cfg *Config) RepositoryPackageName() string
- func (cfg *Config) RequestPackageName() string
- func (cfg *Config) ResponsePackageName() string
- func (cfg *Config) TestDataPath() string
- type Context
- type DAO
- type DataStore
- type Entity
- type Model
- type Plugin
- type Plural
- type PrimitiveType
- type RenderStyle
- type Renderer
- type Repository
Constants ¶
View Source
const ( ConfigFilePath = ".eevee.yml" DefaultDataStore = "db" )
Variables ¶
This section is empty.
Functions ¶
func ExistsConfig ¶
func ExistsConfig() bool
func WriteConfig ¶
Types ¶
type Config ¶
type Config struct { ModulePath string `yaml:"module"` ClassPath string `yaml:"class,omitempty"` APIPath string `yaml:"api,omitempty"` SchemaPath string `yaml:"schema,omitempty"` GraphPath string `yaml:"graph,omitempty"` DocumentPath string `yaml:"document,omitempty"` OutputPath string `yaml:"output,omitempty"` Plugins map[string]*Plugin `yaml:"plugins,omitempty"` DAO *DAO `yaml:"dao,omitempty"` Entity *Entity `yaml:"entity,omitempty"` Model *Model `yaml:"model,omitempty"` Repository *Repository `yaml:"repository,omitempty"` Renderer *Renderer `yaml:"renderer,omitempty"` Plural []*Plural `yaml:"plural,omitempty"` Context *Context `yaml:"context,omitempty"` Types []*PrimitiveType `yaml:"primitive_types,omitempty"` }
func ConfigFromBytes ¶
func ConfigFromPath ¶
func ReadConfig ¶
func (*Config) ContextImportPath ¶
func (*Config) DAOPackageName ¶
func (*Config) EntityPackageName ¶
func (*Config) EntityPlugins ¶
func (*Config) ModelPackageName ¶
func (*Config) OutputPathWithPackage ¶
func (*Config) RepositoryPackageName ¶
func (*Config) RequestPackageName ¶
func (*Config) ResponsePackageName ¶
func (*Config) TestDataPath ¶
type DataStore ¶
type DataStore struct {
Hooks map[string]interface{}
}
func (*DataStore) UnmarshalYAML ¶
type PrimitiveType ¶
type RenderStyle ¶
type RenderStyle string
const ( RenderStyleLowerCamel RenderStyle = "lower-camel" RenderStyleUpperCamel RenderStyle = "upper-camel" RenderStyleLowerSnake RenderStyle = "lower-snake" )
type Renderer ¶
type Renderer struct {
Style RenderStyle `yaml:"style,omitempty"`
}
type Repository ¶
type Repository struct {
Name string `yaml:"name,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.