Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigurationDir = "config/"
Variables ¶
This section is empty.
Functions ¶
func SaveConfiguration ¶
Types ¶
type Configuration ¶
type Configuration struct {
Namespace string `yaml:"namespace"`
Name string `yaml:"name"`
Semver string `yaml:"semver"`
License string `yaml:"license"`
Copyright struct {
Year int `yaml:"year"`
Author string `yaml:"author"`
} `yaml:"copyright"`
Server struct {
JWT string `yaml:"jwt"`
Port int `yaml:"port"`
Frontend struct {
Dir string `yaml:"dir"`
Api string `yaml:"api"`
} `yaml:"frontend"`
} `yaml:"server"`
Database struct {
URL string `yaml:"url"`
Sqlc struct {
RepositoryLocation string `yaml:"repository"`
Schema string `yaml:"schema"`
SqlOrGo string `yaml:"sql_or_go"`
} `yaml:"sqlc"`
QueriesLocation string `yaml:"queries"`
Migration struct {
Protocol string `yaml:"protocol"`
Destination string `yaml:"destination"`
} `yaml:"migration"`
} `yaml:"database"`
Cache struct {
URL string `yaml:"url"`
} `yaml:"cache"`
S3 struct {
URL string `yaml:"url"`
Access string `yaml:"access"`
Secret string `yaml:"secret"`
} `yaml:"s3"`
}
func LoadConfiguration ¶
func LoadConfiguration(environment string) (*Configuration, error)
func (*Configuration) GenerateConfigurationFile ¶
func (configuration *Configuration) GenerateConfigurationFile(environment string) error
func (*Configuration) SaveConfiguration ¶ added in v0.3.0
func (configuration *Configuration) SaveConfiguration(configFile string) error
Click to show internal directories.
Click to hide internal directories.