config

package
v0.0.0-...-73dc979 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.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 Config

type Config struct {
	Database string   `yaml:"database"`
	User     string   `yaml:"user"`
	Password string   `yaml:"password"`
	Servers  []string `yaml:"servers"`
}

Config main config structure

func NewConfig

func NewConfig(configLocation string) *Config

NewConfig Return new config

func (*Config) ConstructDSN

func (c *Config) ConstructDSN() []string

ConstructDSN create slice of postgres dsn from server entries

Jump to

Keyboard shortcuts

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