mpethbalance

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type EthBalancePlugin

type EthBalancePlugin struct {
	Prefix    string
	RPC       string
	Addresses []LabeledAddress
	EthClient *ethclient.Client
}

EthBalancePlugin mackerel plugin for Ethereum balance

func (EthBalancePlugin) FetchMetrics

func (p EthBalancePlugin) FetchMetrics() (map[string]float64, error)

FetchMetrics interface for mackerelplugin

func (EthBalancePlugin) GraphDefinition

func (p EthBalancePlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

func (EthBalancePlugin) MetricKeyPrefix

func (p EthBalancePlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

type LabeledAddress

type LabeledAddress struct {
	Name    string
	Address common.Address
	Label   string
}

Jump to

Keyboard shortcuts

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