Documentation
¶
Index ¶
- Variables
- func Cleanup() error
- func CreateDatabaseConnection(cfg *config.DatabaseConfiguration) (*gorm.DB, error)
- func GetDB() *gorm.DB
- func GetDBSite() *gorm.DB
- func HealthCheck(ctx context.Context) error
- func IsAlive() bool
- func NewFintechLogger(cfg logger.Config) logger.Interface
- func Setup() error
- type Database
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DB *gorm.DB DBSite *gorm.DB )
View Source
var ErrNotInitialized = &errNotInitialized{}
Functions ¶
func CreateDatabaseConnection ¶
func CreateDatabaseConnection(cfg *config.DatabaseConfiguration) (*gorm.DB, error)
func HealthCheck ¶ added in v0.1.14
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewContext ¶ added in v0.2.0
type Option ¶ added in v0.2.0
type Option func(*Options)
func WithConnMaxIdleTime ¶ added in v0.2.0
func WithConnMaxLifetime ¶ added in v0.2.0
func WithLogLevel ¶ added in v0.2.0
func WithMaxIdleConns ¶ added in v0.2.0
func WithMaxOpenConns ¶ added in v0.2.0
func WithPrivateIP ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.