config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Prefix indicates environment variables prefix.
	Prefix = "saf_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger     logger.Config    `koanf:"logger"`
	Telemetry  telemetry.Config `koanf:"telemetry"`
	Monitoring metric.Config    `koanf:"monitoring"`
	NATS       cmq.Config       `koanf:"nats"`
	Channels   channel.Config   `koanf:"channels"`
}

Config holds all configurations.

func Default

func Default() Config

Default return default configuration.

func New

func New() Config

New reads configuration with viper.

Jump to

Keyboard shortcuts

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