Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
Postgres PostgresConfig `mapstructure:",squash"`
Redis RedisConfig `mapstructure:",squash"`
RabbitMQ RabbitMQConfig `mapstructure:",squash"`
OTEL OTELConfig `mapstructure:",squash"`
LogLevel string `mapstructure:"LOG_LEVEL"`
Env AppEnv `mapstructure:"ENV"`
Port string `mapstructure:"PORT"`
MFAMasterKey string `mapstructure:"MFA_MASTER_KEY"`
}
var (
Config *AppConfig
)
func LoadConfig ¶
LoadConfig loads configuration from environment variables.
type OTELConfig ¶
type OTELConfig struct {
Endpoint string `mapstructure:"OTEL_EXPORTER_OTLP_ENDPOINT"`
}
type PostgresConfig ¶
type RabbitMQConfig ¶
type RabbitMQConfig struct {
URL string `mapstructure:"RABBITMQ_URL"`
}
type RedisConfig ¶
type RedisConfig struct {
Addr string `mapstructure:"REDIS_ADDR"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
generated
|
|
|
api
Package internal provides primitives to interact with the openapi HTTP API.
|
Package internal provides primitives to interact with the openapi HTTP API. |
|
client
Package client provides primitives to interact with the openapi HTTP API.
|
Package client provides primitives to interact with the openapi HTTP API. |
|
modules
|
|
|
shared
|
|
|
causation
Package causation provides context-based propagation of identity, auditing, and traceability metadata to track the origin and sequence of operations.
|
Package causation provides context-based propagation of identity, auditing, and traceability metadata to track the origin and sequence of operations. |
|
utils
|
|
Click to show internal directories.
Click to hide internal directories.