setting

package
v0.0.0-...-ac6bbda Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 2 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 {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Protocol string `yaml:"protocol"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Dbname   string `yaml:"dbname"`
	Dbargs   string `yaml:"dbargs"`
}

Connect ...

type Database

type Database struct {
	Dbms    string  `yaml:"dbms"`
	Connect Connect `yaml:"connect"`
}

Database ...

type DatabaseSettings

type DatabaseSettings struct {
	Database Database `yaml:"database"`
}

DatabaseSettings ...

func NewDatabase

func NewDatabase(file string) (*DatabaseSettings, error)

NewDatabase ...

func (*DatabaseSettings) ConnectString

func (d *DatabaseSettings) ConnectString() string

ConnectString ...

func (*DatabaseSettings) DbmsString

func (d *DatabaseSettings) DbmsString() string

DbmsString ...

Jump to

Keyboard shortcuts

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