Documentation ¶
Index ¶
- func Init()
- type Manager
- type Storage
- func (s *Storage) GetCommon(schema configure.Schema) interface{}
- func (s *Storage) GetDB(readOnly ...bool) *gorm.DB
- func (s *Storage) GetRedis(key interface{}) redis.Cmdable
- func (s *Storage) GetRedisz() []redis.Cmdable
- func (s *Storage) InitCommon(config configure.Address) error
- func (s *Storage) InitDB(master configure.Address, slaves []configure.Address, ...) error
- func (s *Storage) InitRedis(configs []configure.Address, opts ...storage.RedisOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.