Documentation ¶
Index ¶
- type Database
- func (db *Database) BeginTransaction() (DatabaseInterface, orm.DB, bool, error)
- func (db *Database) Close()
- func (db *Database) Commit() error
- func (db *Database) Connect()
- func (db *Database) GetConnectionDB() orm.DB
- func (db *Database) HealthCheck() error
- func (db *Database) HealthCheckWithErrorReturnWhenDown() error
- func (db *Database) Rollback() error
- type DatabaseInterface
- type Redis
- type RedisInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database ...
func (*Database) BeginTransaction ¶
BeginTransaction ...
func (*Database) HealthCheckWithErrorReturnWhenDown ¶
HealthCheckWithErrorReturnWhenDown ...
type DatabaseInterface ¶
type DatabaseInterface interface { Connect() Close() HealthCheck() error GetConnectionDB() orm.DB BeginTransaction() (DatabaseInterface, orm.DB, bool, error) Commit() error Rollback() error HealthCheckWithErrorReturnWhenDown() error }
DatabaseInterface ...
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis ...
func (*Redis) DeleteRedisValue ¶
DeleteRedisValue ...
func (*Redis) GetRedisValue ¶
GetRedisValue ...
Click to show internal directories.
Click to hide internal directories.