database

package
v0.0.0-...-64e84b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var DelayBetweenAttempts = time.Minute * 1
View Source
var MaxAttempts = 10
View Source
var RDB *redis.Client

Functions

func BuildRedis

func BuildRedis(options redis.Options)

func Connect

func Connect(dsn string, options DBOptions) error

Types

type DBOptions

type DBOptions struct {
	MaxOpenConns int
	MaxIdleConns int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL