Documentation ¶
Index ¶
- Constants
- func DB() *gorm.DB
- func DBWithOption(conn *Connection, config *gorm.Config) *gorm.DB
- func MysqlInit() *gorm.DB
- func PostgresInit() *gorm.DB
- func RC() redis.Cmdable
- func Redis() redis.Cmdable
- func RedisCluster() redis.Cmdable
- func SqliteInit() *gorm.DB
- type Connection
- type Mutex
- type Option
- type Options
- type Redisson
Constants ¶
View Source
const ( Sqlite = "lite" Mysql = "mysql" Postgres = "pgsql" )
Variables ¶
This section is empty.
Functions ¶
func DBWithOption ¶ added in v0.1.0
func DBWithOption(conn *Connection, config *gorm.Config) *gorm.DB
func PostgresInit ¶
func RedisCluster ¶
func RedisCluster() redis.Cmdable
func SqliteInit ¶
Types ¶
type Connection ¶
type Mutex ¶ added in v0.1.0
type Mutex struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.