Documentation ¶
Overview ¶
Package postgres provide access to database with connections and configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { User string `yaml:"user" env:"PG_USER"` Password string `yaml:"password" env:"PG_PASSWORD"` Host string `yaml:"host" env:"PG_HOST"` Port string `yaml:"port" env:"" envDefault:"5432"` DBName string `yaml:"db_name" env:"PG_DB_NAME"` MaxPoolSize int `yaml:"max_pool_size" env:"pg_max_pool_size"` ConnAttempts int `yaml:"conn_attempts" env:"pg_ConnAttempts "` ConnTimeout time.Duration `yaml:"conn_timeout" env:"pg_ConnTimeout "` ClickhouseURL string `yaml:"clickhouse_url" env:"CLICKHOUSE_URL"` }
Config хранит данные для подключения постгреса
Click to show internal directories.
Click to hide internal directories.