Documentation
¶
Index ¶
Constants ¶
View Source
const ( PostgresHostOptKey = "/postgres/host" PostgresPortOptKey = "/postgres/port" PostgresUserOptKey = "/postgres/user" PostgresPasswordOptKey = "/postgres/password" PostgresDbOptKey = "/postgres/db" )
View Source
const ( RedisHostOptKey = "/redis/host" RedisPortOptKey = "/redis/port" RedisPasswordOptKey = "/redis/password" RedisDbOptKey = "/redis/db" )
Variables ¶
This section is empty.
Functions ¶
func NewPostgresClient ¶
func NewPostgresClient(config *PostgresClientConfig) *gorm.DB
func NewRedisClient ¶
func NewRedisClient(config *RedisClientConfig) *redis.Client
Types ¶
type PostgresClientConfig ¶
Click to show internal directories.
Click to hide internal directories.