conf

package
v0.0.0-...-8d6f8ef Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Database struct {
		MySQL struct {
			DBName   string `yaml:"dbname"`
			Host     string `yaml:"host"`
			Username string `yaml:"username"`
			Password string `yaml:"password"`
			TCP      string `yaml:"tcp"`
			Port     int    `yaml:"port"`
		} `yaml:"mysql"`
		Postgre struct {
			DBName   string `yaml:"dbname"`
			Host     string `yaml:"host"`
			Username string `yaml:"username"`
			Password string `yaml:"password"`
			SSLMode  string `yaml:"sslmode"`
			TCP      string `yaml:"tcp"`
		} `yaml:"postgre"`
		Type []string `yaml:"type"`
	} `yaml:"database"`
	ToDSN map[string]interface{}
}
var Config Configuration

func Init

func Init() *Configuration

func (*Configuration) GetConfiguration

func (c *Configuration) GetConfiguration()

func (*Configuration) SetDSN

func (c *Configuration) SetDSN()

Jump to

Keyboard shortcuts

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