config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 3 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 {
	Database Database `yaml:"database"`
	Schemas  Schemas  `yaml:"schemas"`
}

func Resolve

func Resolve(configFile string, dbFolder string, dbExtension string) (Config, error)

type Database

type Database struct {
	File *File              `yaml:"file,omitempty"`
	Etcd *config.EtcdConfig `yaml:"etcd,omitempty"`
}

func (*Database) Verify

func (d *Database) Verify() error

type File

type File struct {
	Folder        string        `yaml:"folder"`
	FileExtension FileExtension `yaml:"file_extension"`
}

func (*File) Verify

func (f *File) Verify() error

type FileExtension

type FileExtension string
const (
	YAMLExtension FileExtension = "yaml"
	JSONExtension FileExtension = "json"
)

type Schemas

type Schemas struct {
	PanelsPath  string        `yaml:"panels_path,omitempty"`
	QueriesPath string        `yaml:"queries_path,omitempty"`
	Interval    time.Duration `yaml:"interval,omitempty"`
}

func (*Schemas) Verify

func (s *Schemas) Verify() error

Jump to

Keyboard shortcuts

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