Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GinServerSettings ¶
type GinServerSettings struct {
Port int `yaml:"port"`
}
type PostgresSettings ¶
type PostgresSettings struct {
ConnectionString string `yaml:"connectionString"`
}
type SqliteSettings ¶
type SqliteSettings struct {
DBPath string `yaml:"dbPath"`
}
type YamlConfigs ¶
type YamlConfigs struct {
/* ------------------------ choose one of delivery methods ------------------------ */
UseGinServer bool `yaml:"useGinServer"`
/* ------------------------- choose one of storage methods ------------------------ */
UseSqlite bool `yaml:"useSqlite"`
UsePostgres bool `yaml:"usePostgres"`
/* ---------------------------- delivery settings --------------------------- */
GinServerSettings GinServerSettings `yaml:"ginServerSettings"`
/* ---------------------------- storage settings ---------------------------- */
SqliteSettings SqliteSettings `yaml:"sqliteSettings"`
PostgresSettings PostgresSettings `yaml:"postgresSettings"`
}
func DecodeYaml ¶
func DecodeYaml(file io.Reader) (YamlConfigs, error)
Click to show internal directories.
Click to hide internal directories.