Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLockNotObtained = errors.New("couldn't obtain lock")
View Source
var LockRetryStrategy = redislock.Options{ RetryStrategy: redislock.LimitRetry(redislock.LinearBackoff(2*time.Second), 3), }
Retry every 100ms, for up-to 3x
Functions ¶
func GetRedisDB ¶
func GetRedisDB() *redisManager
Types ¶
type PostgresConn ¶
func (*PostgresConn) DSN ¶
func (c *PostgresConn) DSN() string
func (*PostgresConn) Dialect ¶
func (c *PostgresConn) Dialect() string
func (*PostgresConn) Driver ¶
func (c *PostgresConn) Driver() string
type SqlDBConn ¶
func GetSqlDbConn ¶
Gets the DB connection information based on environment variables
type SqliteConn ¶
func (*SqliteConn) DSN ¶
func (c *SqliteConn) DSN() string
func (*SqliteConn) Dialect ¶
func (c *SqliteConn) Dialect() string
func (*SqliteConn) Driver ¶
func (c *SqliteConn) Driver() string
Click to show internal directories.
Click to hide internal directories.