Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { Port int `env:"SHAR_PORT" envDefault:"50000"` NatsURL string `env:"NATS_URL" envDefault:"nats://127.0.0.1:4222"` LogLevel string `env:"SHAR_LOG_LEVEL" envDefault:"debug"` PanicRecovery bool `env:"SHAR_PANIC_RECOVERY" envDefault:"true"` Concurrency int `env:"SHAR_CONCURRENCY" envDefault:"10"` }
Settings is the settings provider for a SHAR server.
func GetEnvironment ¶
GetEnvironment pulls the active settings into a settings struct.
Click to show internal directories.
Click to hide internal directories.