database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMailstackDatabase

func InitMailstackDatabase(dbConfig *DatabaseConfig) (*gorm.DB, error)

func InitOpenlineDatabase added in v0.0.3

func InitOpenlineDatabase(dbConfig *DatabaseConfig) (*gorm.DB, error)

func NewConnection

func NewConnection(dbConfig *DatabaseConfig) (*gorm.DB, error)

Types

type DatabaseConfig

type DatabaseConfig struct {
	Host            string
	Port            string
	User            string
	DBName          string
	Password        string
	MaxConn         int
	MaxIdleConn     int
	ConnMaxLifetime int
	LogLevel        string
	SSLMode         string
}

Jump to

Keyboard shortcuts

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