config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdIn io.Reader = os.Stdin

Functions

func New

func New() (*Config, *Flags, error)

Types

type Config

type Config struct {
	Scripts        *scripts.Scripts         `json:"scripts" yaml:"scripts" hcl:"scripts,block"`
	DataSources    *datasources.DataSources `json:"datasources" yaml:"datasources" hcl:"datasources,block"`
	Channels       *channels.Channels       `json:"channels" yaml:"channels" hcl:"channels,block"`
	StoragesUpload *upload.Upload           `json:"storagesUpload" yaml:"storagesUpload" hcl:"storagesUpload,block"`
	StoragesCore   *core.Core               `json:"storagesCore" yaml:"storagesCore" hcl:"storagesCore,block"`
	API            *api.API                 `json:"api" yaml:"api" hcl:"api,block"`

	LuaModulesPath string `json:"luaModulesPath" yaml:"luaModulesPath" hcl:"luaModulesPath,optional"`
	StorageAlert   string `json:"storageAlert" yaml:"storageAlert" hcl:"storageAlert,optional"`
	StorageKV      string `json:"storageKV" yaml:"storageKV" hcl:"storageKV,optional"`
}

func (Config) Validate

func (cfg Config) Validate() error

type Flags added in v0.7.0

type Flags struct {
	ConfigFilePath string
	LogLevel       string
	Debug          bool
	Once           bool
	Script         string
	AsJSON         bool
}

Jump to

Keyboard shortcuts

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