config

package
v0.0.0-...-4f7a9cb Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Usage

func Usage() string

Usage - get usage information

Types

type Record

type Record struct {
	ConfigPath  string
	MappingPath string

	ShowVersion bool
	TestMode    bool
	TestQuery   string

	Host        string
	Port        int
	Workers     int
	Connections int
	Storage     struct {
		StorageType string
		Host        string
		Port        int
		User        string
		Password    string
		IndexBase   string
		TypeTable   string
	}
}

Record - standard record (struct) for config package

func New

func New() *Record

New - returns new config record initialized with default values

func (*Record) Load

func (config *Record) Load() (mapper.Bundle, error)

Load settings from config file or from sh command line

Jump to

Keyboard shortcuts

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