Documentation ¶
Overview ¶
Package config contains the config for the prom exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Port is the port of the config Port int `yaml:"port"` // DFKApiUrl is the url of the DFK API DFKUrl string `yaml:"dfk_url" default:"https://defi-kingdoms-community-api-gateway-co06z8vi.uc.gateway.dev/graphql"` // DFKPending is the list of pending heroes DFKPending []DFKPending `yaml:"dfk_pending"` // SubmitterChecks is the list of gas checks SubmitterChecks []SubmitterChecks `yaml:"gas_checks"` OmnirpcURL string `yaml:"omnirpc_url" default:"https://rpc.omnirpc.io"` }
Config contains the config for the prometheues exporter.
func DecodeConfig ¶
DecodeConfig decodes the config from the given file path.
type DFKPending ¶
type DFKPending struct { // Owner is the owner of the pending heroes Owner string `yaml:"owner"` // ChainName is the name of the chain ChainName string `yaml:"chain_name"` }
DFKPending contains the config for the DFK pending metric.
type SubmitterChecks ¶ added in v0.0.6
type SubmitterChecks struct { // ChainID is the chain id ChainIDs []int `yaml:"chain_ids"` // Address is the address of the contract Address string `yaml:"address"` // Name of the address entity Name string `yaml:"name"` }
SubmitterChecks contains the config for the gas checks.
Click to show internal directories.
Click to hide internal directories.