config

package
v0.0.0-...-dfaae00 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(c *cli.Context) error

Types

type Config

type Config struct {
	DSN string `yaml:"dsn"`

	ApiURL   string `yaml:"api-url"`
	ApiToken string `yaml:"api-token"`

	DataDir string `yaml:"data-dir"`
	Name    string `yaml:"name"`

	ElasticSearch struct {
		Host string `yaml:"host"`
	} `yaml:"elasticsearch"`

	Tokens []string `yaml:"tokens"`
}
var DefaultConfig Config = Config{}

func Get

func Get() *Config

func (*Config) Load

func (c *Config) Load(path string) error

Jump to

Keyboard shortcuts

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