package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: May 17, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DB struct {
DSN string `env:"POSTGRES_DSN" envDefault:"host=localhost port=5432 user=postgres password=DB_PASSWORD dbname=postgres sslmode=disable"`
MaxOpenConnections int `env:"POSTGRES_MAX_OPEN_CONNECTIONS" envDefault:"30"`
Debug bool `env:"POSTGRES_DEBUG" envDefault:"false"`
}
type Health struct {
Listen string `env:"HEALTH_LISTEN" envDefault:":3000"`
}
type InternalAPI struct {
Bind string `env:"INTERNAL_API_GRPC_SERVER_BIND" envDefault:":11000"`
}
type Nats struct {
URL string `env:"NATS_URL" envDefault:"nats://127.0.0.1:4222"`
MaxReconnects int `env:"NATS_MAX_RECONNECTS" envDefault:"10"`
ReconnectTimeout time.Duration `env:"NATS_RECONNECT_TIMEOUT" envDefault:"1s"`
}
type Prometheus struct {
Listen string `env:"PROMETHEUS_LISTEN" envDefault:":2112"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.