package
Version:
v0.0.0-alpha1
Opens a new window with list of versions in this module.
Published: Aug 3, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Path = "config/config.yaml"
DefaultPath = "default.config.yaml"
)
type App struct {
Name string `env-required:"true" yaml:"name"`
}
App -.
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
Log `yaml:"logger"`
*Tracer `yaml:"tracer"`
Database `yaml:"database"`
}
Config -.
NewConfig returns app config.
type Database struct {
*Listen `yaml:"listen"`
Write `env-required:"true" yaml:"write"`
}
Database -.
type HTTP struct {
Port string `env-required:"true" yaml:"port"`
}
HTTP -.
type Listen struct {
Connection string `yaml:"connection"`
PoolMax int `yaml:"pool_max"`
URL string `yaml:"url"`
SlotName string `yaml:"slot_name"`
OutputPlugin string `yaml:"output_plugin"`
Tables []string `yaml:"tables"`
}
type Log struct {
Level string `env-required:"true" yaml:"log_level"`
}
Log -.
type Tracer struct {
Exporter string `yaml:"exporter"`
Endpoint string `yaml:"endpoint"`
Disabled bool `yaml:"disabled"`
}
Tracer -.
type Write struct {
Connection string `env-required:"true" yaml:"connection"`
PoolMax int `env-required:"true" yaml:"pool_max"`
Database string `env-required:"true" yaml:"database"`
URI string `env-required:"true" yaml:"uri"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.