config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultValues = `` /* 202-byte string literal not displayed */

DefaultValues is the default configuration

View Source
const (
	// Stream Server Config
	// FlagCfg is the flag for cfg.
	FlagCfg = "cfg"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StreamServer datastreamer.Config `mapstructure:"StreamServer"`
	StateDB      db.Config           `mapstructure:"StateDB"`
	LogConfig    log.Config          `mapstructure:"Log"`
}

Config is the configuration for the tool

func Default

func Default() (*Config, error)

Default parses the default configuration values.

func Load

func Load(ctx *cli.Context) (*Config, error)

Jump to

Keyboard shortcuts

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