models

package
v0.0.0-...-df0fe4b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

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

Functions

func Connect

func Connect(options DBOptions) error

func GenerateDSN

func GenerateDSN(options DBOptions) (string, error)

func HandleCACert

func HandleCACert(driver string, cacert string) error

Types

type DBOptions

type DBOptions struct {
	Driver   string
	Host     string
	Port     string
	User     string
	Password string
	Database string
	Options  string

	MaxOpenConns int
	MaxIdleConns int

	CACert string
}

Jump to

Keyboard shortcuts

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