config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

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

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"`
	NATS      cmq.Config       `koanf:"nats"`
	Streaming streaming.Config `koanf:"streaming"`
	Channel   string           `koanf:"channel"`
	Topics    []string         `koanf:"topics"`
}

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