config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagYes is the flag for yes.
	FlagYes = "yes"
	// FlagCfg is the flag for cfg.
	FlagCfg = "cfg"
	// FlagNoMigrations is the flag for migrations.
	FlagNoMigrations = "no-migrations"
	// FlagHTTPAPI is the flag for http.api.
	FlagHTTPAPI = "http.api"
)
View Source
const DefaultValues = `` /* 684-byte string literal not displayed */

DefaultValues is the default configuration

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Log configuration
	Log log.Config

	// Server configuration
	Server server.Config

	// DB configuration
	DB db.Config

	// Sender configuration
	Sender sender.Config

	// Monitor configuration
	Monitor monitor.Config
}

func Default

func Default() (*Config, error)

Default parses the default configuration values.

func Load

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

Load loads the configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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