config

package
v0.1.192 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	NatsURL   string `env:"NATS_URL" envDefault:"nats://127.0.0.1:4222"`
	JaegerURL string `env:"JAEGER_URL" envDefault:"http://localhost:14268/api/traces"`
	LogLevel  string `env:"SHAR_LOG_LEVEL" envDefault:"debug"`
}

func GetEnvironment

func GetEnvironment() (*Settings, error)

Jump to

Keyboard shortcuts

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