Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGStorage ¶
type PGStorage struct {
// contains filtered or unexported fields
}
func NewPGStorage ¶
func NewPGStorage(logger *zap.Logger, cfg StorageConfig) (*PGStorage, error)
NewPGStorage TODO: write mock
type StorageConfig ¶
type StorageConfig struct { EnableMock bool `yaml:"enable_mock"` Hosts []string `yaml:"hosts"` Port int `yaml:"port"` Database string `yaml:"database"` Username string `yaml:"username"` Password string `yaml:"password" env:"DB_PASSWORD"` SSLMode string `yaml:"ssl_mode"` ConnectionAttempts int `yaml:"connection_attempts"` InitializationTimeout time.Duration `yaml:"initialization_timeout"` }
func (*StorageConfig) Validate ¶
func (c *StorageConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.