config

package
v1.1.1921 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 2 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"`
	LogLevel        string `env:"SHAR_LOG_LEVEL" envDefault:"warn"`
	JetStreamDomain string `env:"SHAR_JETSTREAM_DOMAIN" envDefault:""`
	HostID          string `env:"HOST_ID" envDefault:"localhost"`
	Environment     string `env:"ENVIRONMENT" envDefault:"dev"`
	SplashEnabled   bool   `env:"SHAR_TELEMETRY_SPLASH" envDefault:"true"`
}

Settings is the settings provider for telemetry.

func GetEnvironment

func GetEnvironment() (*Settings, error)

GetEnvironment pulls the active settings into a settings struct.

Jump to

Keyboard shortcuts

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