Documentation ¶
Index ¶
- func NewClickHouseClient(cfg ClickhouseConfig) (*sql.DB, error)
- func NewPostgresClient(cfg PostgresConfig) (*gorm.DB, error)
- func NewRedisClient(cfg RedisConfig) (*redis.Client, error)
- type AWSConfig
- type ClickhouseConfig
- type MongoClient
- type MongoDBConfig
- type PostgresConfig
- type RedisConfig
- type S3ClientAWS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClickHouseClient ¶
func NewClickHouseClient(cfg ClickhouseConfig) (*sql.DB, error)
func NewPostgresClient ¶
func NewPostgresClient(cfg PostgresConfig) (*gorm.DB, error)
func NewRedisClient ¶
func NewRedisClient(cfg RedisConfig) (*redis.Client, error)
Types ¶
type AWSConfig ¶
type AWSConfig struct { AccessKeyID string `mapstructure:"access_key_id"` SecretAccessKey string `mapstructure:"secret_access_key"` Bucket string `mapstructure:"bucket"` Region string `mapstructure:"region"` // Used for minio as local aws Local bool `mapstructure:"local"` Endpoint string `mapstructure:"endpoint"` }
type ClickhouseConfig ¶
type MongoClient ¶
func NewMongoClient ¶
func NewMongoClient(cfg MongoDBConfig) (*MongoClient, error)
func (*MongoClient) Disconnect ¶
func (c *MongoClient) Disconnect()
Disconnect from mongodb If error occur on disconnection nothing happen
type MongoDBConfig ¶
type MongoDBConfig struct { AppName string `mapstructure:"app_name"` Host string `mapstructure:"host"` Port string `mapstructure:"port"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` AuthDB string `mapstructure:"auth_db"` UseDBName string `mapstructure:"database"` }
type PostgresConfig ¶
type RedisConfig ¶
type S3ClientAWS ¶
func NewS3ClientAWS ¶
func NewS3ClientAWS(cfg AWSConfig) (*S3ClientAWS, error)
Directories ¶
Path | Synopsis |
---|---|
For generate mocks on sarama interfaces
|
For generate mocks on sarama interfaces |
Click to show internal directories.
Click to hide internal directories.