Documentation ¶
Index ¶
- Constants
- type GlacierAuth
- type Memory
- type MongoDB
- type MySQL
- type PostgreSQL
- type Project
- func (p *Project) Add() error
- func (p *Project) FuncMap() template.FuncMap
- func (p *Project) Init() error
- func (p *Project) LoadGlacierAuthConfig() error
- func (p *Project) LoadMemoryConfig() error
- func (p *Project) LoadMongoDBConfig() error
- func (p *Project) LoadMySQLConfig() error
- func (p *Project) LoadPostgreSQLConfig() error
- func (p *Project) LoadRedisConfig() error
- func (p *Project) SaveFile(filePath string) error
- func (p *Project) ToYAML() (string, error)
- type ProjectAdd
- type Redis
Constants ¶
View Source
const ProjectSettingFilePath = ".toolchain.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlacierAuth ¶
GlacierAuth 鉴权服务配置
type PostgreSQL ¶
type Project ¶
type Project struct { PKG string `yaml:"pkg"` Name string `yaml:"name"` AppName string `yaml:"-"` CapName string `yaml:"-"` Description string `yaml:"description"` EnableGlacierAuth bool `yaml:"enable_glacier_auth"` GlacierAuth *GlacierAuth `yaml:"-"` EnableMySQL bool `yaml:"enable_mysql"` MySQL *MySQL `yaml:"-"` EnablePostgreSQL bool `yaml:"enable_postgre_sql"` PostgreSQL *PostgreSQL `yaml:"_"` EnableMongoDB bool `yaml:"enable_mongodb"` MongoDB *MongoDB `yaml:"-"` GenExample bool `yaml:"gen_example"` HttpFramework string `yaml:"http_framework"` EnableCache bool `yaml:"enable_cache"` CacheType string `yaml:"cache_type"` EnableMemory bool `yaml:"enable_memory"` Memory *Memory `yaml:"-"` EnableRedis bool `yaml:"enable_redis"` Redis *Redis `yaml:"-"` // contains filtered or unexported fields }
func LoadConfigFromYAMLCLI ¶
func (*Project) LoadGlacierAuthConfig ¶
func (*Project) LoadMemoryConfig ¶
func (*Project) LoadMongoDBConfig ¶
func (*Project) LoadMySQLConfig ¶
func (*Project) LoadPostgreSQLConfig ¶
func (*Project) LoadRedisConfig ¶
type ProjectAdd ¶
Click to show internal directories.
Click to hide internal directories.