Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // DriverName is the name of the database driver and it's mandatory DriverName string `json:"driver_name" yaml:"driver_name" env:"DB_DRIVER" env-default:"postgres" validate:"required"` // You can supply either an sql.DB object or config of the database connection, but not both (mutually exclusive) DB *sql.DB `validate:"required_without=DbHost"` DbHost string `` /* 226-byte string literal not displayed */ DbPort int `` /* 217-byte string literal not displayed */ DbName string `` /* 213-byte string literal not displayed */ DbUsername string `` /* 221-byte string literal not displayed */ DbPassword string `` /* 221-byte string literal not displayed */ DbSslMode string `` /* 221-byte string literal not displayed */ // ReplicaDB is the database connection for replication, it's optional ReplicaDB *sql.DB `validate:"required_without=ReplicaDbHost"` ReplicaDbHost string `` /* 296-byte string literal not displayed */ ReplicaDbPort int `` /* 287-byte string literal not displayed */ ReplicaDbName string `` /* 283-byte string literal not displayed */ ReplicaDbUsername string `` /* 291-byte string literal not displayed */ ReplicaDbPassword string `` /* 291-byte string literal not displayed */ ReplicaDbSslMode string `` /* 291-byte string literal not displayed */ AwsAccessKeyID string AwsSecretAccessKey string AwsSessionToken string AwsSource string AwsRegion string AwsEndpointURL string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.