Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDBByHost ¶
func NewMemoryCache ¶
NewMemoryCache create a cache use memory sqlite
func NewSQLiteCache ¶
NewSQLiteCache create a cache for per host sqlite db plus a file db
Types ¶
type GetDBFunc ¶
type GetDBFunc func(key string, opts ...func(*GetDBOptions)) (db *gorm.DB, err error)
type GetDBOptions ¶
Click to show internal directories.
Click to hide internal directories.