Versions in this module Expand all Collapse all v0 v0.1.1 Apr 17, 2026 v0.1.0 Apr 16, 2026 Changes in this version + func GetDB() *gorm.DB + func GetRedis() *redis.Client + func InitMySQL(opts *MySQLOptions) (*gorm.DB, error) + func InitRedis(opts *RedisOptions) (*redis.Client, error) + type MySQLOptions struct + Database string + Host string + LogLevel int + MaxConnectionLifeTime time.Duration + MaxIdleConnections int + MaxOpenConnections int + Password string + Username string + func (o *MySQLOptions) DSN() string + type RedisOptions struct + Addr string + DB int + DialTimeout time.Duration + MinIdleConns int + Password string + PoolSize int + ReadTimeout time.Duration + WriteTimeout time.Duration