metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGasPerBlock

func GetGasPerBlock(blocks []jsonrpc.RawBlockResponse) []float64

func GetMeanBlockTime

func GetMeanBlockTime(blocks []jsonrpc.RawBlockResponse) float64

func GetMeanGasPricePerBlock

func GetMeanGasPricePerBlock(blocks []jsonrpc.RawBlockResponse) []float64

func GetSimpleBlockRecords

func GetSimpleBlockRecords(blocks []jsonrpc.RawBlockResponse) [][]string

func GetSizePerBlock

func GetSizePerBlock(blocks []jsonrpc.RawBlockResponse) []float64

func GetTxsPerBlock

func GetTxsPerBlock(blocks []jsonrpc.RawBlockResponse) []float64

func GetUnclesPerBlock

func GetUnclesPerBlock(blocks []jsonrpc.RawBlockResponse) []float64

Types

type BlockSlice

type BlockSlice []jsonrpc.RawBlockResponse

func (BlockSlice) Len

func (a BlockSlice) Len() int

func (BlockSlice) Less

func (a BlockSlice) Less(i, j int) bool

func (BlockSlice) Swap

func (a BlockSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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