config

package
v0.0.0-...-c4175cc Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 6 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 {
	WorkDir   string                  `config:"workdir"`
	TempDir   string                  `config:"tempdir"`
	V8version string                  `config:"v8version"`
	V8Path    string                  `config:"v8path"`
	Storage   StorageConfig           `config:"storage"`
	Infobase  *InfobaseConfig         `config:"infobase"`
	Plugins   map[string]*ucfg.Config `config:"plugins"`

	Debug bool `config:"debug"`
}

func DefaultConfig

func DefaultConfig() *Config

func LoadConfig

func LoadConfig(config *Config, configFile string) (*Config, error)

type InfobaseConfig

type InfobaseConfig struct {
	ConnectionString string `config:"connection,required"`
	User             string `config:"user,required"`
	Password         string `config:"password"`
}

type StorageConfig

type StorageConfig struct {
	Path     string `config:"path"`
	User     string `config:"user"`
	Password string `config:"password"`
}

Jump to

Keyboard shortcuts

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