Documentation ¶
Index ¶
- Constants
- func BootStrap() iris.Configurator
- func CacheConn(name ...string) (interface{}, error)
- func G(name ...string) *gorm.DB
- func M(name ...string) *memcache.Client
- func R(name ...string) *redis.Client
- func SqlConn(name ...string) (interface{}, error)
- type Connection
- type Database
- type Databases
- type Driver
Constants ¶
View Source
const ( GORM Driver = iota REDIS MEMCACHE None Database = iota MySQL PostgreSQL Sqlite3 Redis Memcache )
View Source
const (
Default = "Default"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
type Databases ¶
type Databases map[string]Connection
Click to show internal directories.
Click to hide internal directories.