package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Dec 5, 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 Analytics struct {
AnalyticsAddress string `env:"ANALYTICS_API_ADDRESS" envDefault:"localhost:11077"`
}
type ChainInstance struct {
ID uint `env:"ID"`
InternalName string `env:"INTERNAL_NAME"`
PublicName string `env:"PUBLIC_NAME"`
Symbol string `env:"SYMBOL"`
PublicNode string `env:"PUBLIC_NODE"`
Decimals uint `env:"DECIMALS"`
TxScanTemplate string `env:"TX_SCAN_TEMPLATE"`
}
type Core struct {
CoreURL string `env:"CORE_URL" envDefault:""`
}
type Health struct {
Listen string `env:"HEALTH_LISTEN" envDefault:":3000"`
}
type Inbox struct {
StorageAddress string `env:"INBOX_API_STORAGE_ADDRESS" envDefault:"localhost:11055"`
FeedAddress string `env:"INBOX_API_FEED_ADDRESS" envDefault:"localhost:11066"`
}
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"`
}
type REST struct {
Listen string `env:"REST_LISTEN" envDefault:":8080"`
Timeout time.Duration `env:"REST_TIMEOUT" envDefault:"30s"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.