exporters

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Package exporters contains the exporters for the prometheus exporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartExporterServer

func StartExporterServer(ctx context.Context, handler metrics.Handler, cfg config.Config) error

StartExporterServer starts the exporter server. nolint: cyclop

Types

type TokenConfig added in v0.0.46

type TokenConfig struct {
	TokenID       string
	ChainID       int
	TokenAddress  common.Address
	TokenDecimals uint8
	HasUnderlying bool
	IsUnderlying  bool
}

TokenConfig is a cleaned up token config.

type Tokens added in v0.0.46

type Tokens []TokenConfig

Tokens is a list of token configs.

func (Tokens) GetForChainID added in v0.0.46

func (t Tokens) GetForChainID(chainID int) Tokens

GetForChainID returns all tokens for a given chainID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL