Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLStore ¶
type MySQLStore struct {
// contains filtered or unexported fields
}
func DB ¶
func DB(configKey string) *MySQLStore
func (*MySQLStore) Callback ¶ added in v1.0.1
func (m *MySQLStore) Callback(fn callback)
func (*MySQLStore) Config ¶
func (m *MySQLStore) Config() *config.MySQL
func (*MySQLStore) ConfigKey ¶ added in v1.0.1
func (m *MySQLStore) ConfigKey() string
func (*MySQLStore) Options ¶ added in v1.0.1
func (m *MySQLStore) Options(options *gorm.Config)
func (*MySQLStore) Use ¶
func (m *MySQLStore) Use() *gorm.DB
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func Redis ¶
func Redis(configKey string) *RedisStore
func (*RedisStore) Config ¶
func (s *RedisStore) Config() *config.Redis
func (*RedisStore) ConfigKey ¶ added in v1.0.1
func (s *RedisStore) ConfigKey() string
func (*RedisStore) Use ¶
func (s *RedisStore) Use() *redis.Client
type SQLiteStore ¶
type SQLiteStore struct {
// contains filtered or unexported fields
}
func SQLite ¶
func SQLite(configKey string) *SQLiteStore
func (*SQLiteStore) Callback ¶ added in v1.0.1
func (m *SQLiteStore) Callback(fn callback)
func (*SQLiteStore) Config ¶
func (m *SQLiteStore) Config() *config.Sqlite
func (*SQLiteStore) ConfigKey ¶ added in v1.0.1
func (m *SQLiteStore) ConfigKey() string
func (*SQLiteStore) Options ¶ added in v1.0.1
func (m *SQLiteStore) Options(options *gorm.Config)
func (*SQLiteStore) Use ¶
func (m *SQLiteStore) Use() *gorm.DB
type SqlServerStore ¶
type SqlServerStore struct {
// contains filtered or unexported fields
}
func SqlServer ¶
func SqlServer(configKey string) *SqlServerStore
func (*SqlServerStore) Callback ¶ added in v1.0.1
func (m *SqlServerStore) Callback(fn callback)
func (*SqlServerStore) Config ¶
func (m *SqlServerStore) Config() *config.SqlServer
func (*SqlServerStore) ConfigKey ¶ added in v1.0.1
func (m *SqlServerStore) ConfigKey() string
func (*SqlServerStore) Options ¶ added in v1.0.1
func (m *SqlServerStore) Options(options *gorm.Config)
func (*SqlServerStore) Use ¶
func (m *SqlServerStore) Use() *gorm.DB
Click to show internal directories.
Click to hide internal directories.