config

package
v0.0.0-...-bf71a7b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect

type Connect struct {
	Dns     string `toml:"dns"`
	Driver  string `toml:"driver"`
	Host    string `toml:"host"`
	Port    uint16 `toml:"port"`
	User    string `toml:"user"`
	Pass    string `toml:"pass"`
	DbName  string `toml:"db_name"`
	Debug   bool   `toml:"debug"`
	LogFile string `toml:"log_file"`
}

Connect config

func (*Connect) DNS

func (c *Connect) DNS() string

func (*Connect) LoadConfFromMap

func (c *Connect) LoadConfFromMap(conf map[interface{}]interface{})

func (*Connect) LoadConfFromToml

func (c *Connect) LoadConfFromToml(tomlFile string)

func (*Connect) LoadConfFromYaml

func (c *Connect) LoadConfFromYaml(yamlFile string)

Jump to

Keyboard shortcuts

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