infrastruct

package
v0.0.0-...-12afa56 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User     string `json:"user"`
	Password string `json:"password"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Name     string `json:"name"`
	Charset  string `json:"charset"`

	MaxIdleConn     int           `json:"max_idle_conn"`
	MaxOpenConn     int           `json:"max_open_conn"`
	ConnMaxLifeTime time.Duration `json:"conn_max_life_time"`

	GormConfig *gorm.Config `json:"gormConfig"`
}

func (*Config) BuildDSN

func (cfg *Config) BuildDSN() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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