Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemoryCache ¶
func NewMemoryCache(config config.MemoryCacheConfig) *cache.Cache
func NewRedis ¶
func NewRedis(config config.CacheConfig) *redis.Client
Types ¶
type Orm ¶
Orm facilitate database interactions, support mysql
func NewOrm ¶
func NewOrm(database config.DatabaseConfig, debug bool) *Orm
NewOrm creates a new model, and opens database connection based on cfg settings
func (*Orm) AutoMigrateAll ¶
func (orm *Orm) AutoMigrateAll()
AutoMigrateAll runs migrations for all the registered models
Click to show internal directories.
Click to hide internal directories.