config

package
v0.0.0-...-643b5fb Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 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
	CacheControlPath   string
	CacheExecutionFile string
	CacheListFile      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
	}

	CacheEnabled         bool
	CacheExpiration      int
	CacheCleanupInterval int
}

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