config

package
v0.0.0-...-5460b4a Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package "config" defines the structure of connections and provides logic to load and validate the configuration from YAML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(cfgFile string, logger *log.Logger) (*[]Connection, error)

Get reads and returns an array of Connection instances given the path to the YAML config file - or the default path if not given.

Types

type Connection

type Connection struct {
	Name              string
	Server            string
	Database          string
	Integrated        bool
	Username          string
	Password          string
	PasswordDecryptor string
	Tool              string
}

Connection represents each entry in the YAML file that represents a connection to a SQL Server database.

Jump to

Keyboard shortcuts

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