Documentation ¶
Index ¶
- type Config
- func (c Config) GetHost() string
- func (c Config) GetPassword() string
- func (c Config) GetPort() string
- func (c Config) GetSSLMode() string
- func (c Config) GetSchema() string
- func (c Config) GetUser() string
- func (c Config) WithMaxIdleConnections(maxIdleConnections int) Config
- func (c Config) WithMaxOpenConnections(maxOpenConnections int) Config
- func (c Config) WithPartitionBatchSize(partitionBatchSize int64) Config
- func (c Config) WithPartitionSize(partitionSize int64) Config
- func (c Config) WithSSLCert(sslCert string) Config
- func (c Config) WithSSLKey(sslKey string) Config
- func (c Config) WithSSLModeEnable(sslModeEnable string) Config
- func (c Config) WithSSLRootCert(sslRootCert string) Config
- func (c Config) WithURL(url string) Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URL string `yaml:"url"` MaxOpenConnections int `yaml:"max_open_connections"` MaxIdleConnections int `yaml:"max_idle_connections"` PartitionSize int64 `yaml:"partition_size"` PartitionBatchSize int64 `yaml:"partition_batch"` SSLModeEnable string `yaml:"ssl_mode_enable"` SSLRootCert string `yaml:"ssl_root_cert"` SSLCert string `yaml:"ssl_cert"` SSLKey string `yaml:"ssl_key"` }
func DefaultDatabaseConfig ¶
func DefaultDatabaseConfig() Config
DefaultDatabaseConfig returns the default instance of Config
func NewDatabaseConfig ¶
func (Config) GetPassword ¶
func (Config) GetSSLMode ¶
func (Config) WithMaxIdleConnections ¶ added in v5.1.0
func (Config) WithMaxOpenConnections ¶ added in v5.1.0
func (Config) WithPartitionBatchSize ¶ added in v5.1.0
func (Config) WithPartitionSize ¶ added in v5.1.0
func (Config) WithSSLCert ¶ added in v5.1.0
func (Config) WithSSLKey ¶ added in v5.1.0
func (Config) WithSSLModeEnable ¶ added in v5.1.0
func (Config) WithSSLRootCert ¶ added in v5.1.0
Click to show internal directories.
Click to hide internal directories.