conf

package
v0.0.0-...-99ed3b9 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDb

func GetDb(conf *DbConf) (*gorm.DB, error)

Types

type DbConf

type DbConf struct {
	Host     string `json:"host"`
	User     string `json:"user"`
	PassWord string `json:"passWord"`
	Database string `json:"database"`
	Port     string `json:"port"`
}

type DbConfInterface

type DbConfInterface interface {
	GetDbConf() *DbConf
}

type DbFile

type DbFile struct {
	// contains filtered or unexported fields
}

func InitFileConf

func InitFileConf(path string) *DbFile

func (*DbFile) GetDbConf

func (f *DbFile) GetDbConf() (*DbConf, error)

Jump to

Keyboard shortcuts

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