config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormConf

type GormConf struct {
	Ip           string        `json:"ip"`
	Port         int32         `json:"port"`
	Username     string        `json:"username"`
	Password     string        `json:"password"`
	DbName       string        `json:"dbname"`
	MaxIdleConns int           `json:"maxIdleConns"`
	MaxOpenConns int           `json:"maxOpenConns"`
	Logger       logger.Config `json:"logger,optional"`
}

func (*GormConf) MustNewGormClient

func (gc *GormConf) MustNewGormClient() *gorm.DB

Jump to

Keyboard shortcuts

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