package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Mar 2, 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"`
DatasourceSnapshotAddress string `env:"INTERNAL_API_DATASOURCE_SNAPSHOT_ADDRESS" envDefault:"localhost:11100"`
EnsResolverAddress string `env:"INTERNAL_API_ENS_RESOLVER_ADDRESS" envDefault:":20200"`
}
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.