modules

package
v0.0.0-...-4caad46 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BASE_URL = "http://192.168.10.202:9024"

const BASE_URL = "http://localhost:9024"

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

type Analysis struct {
	Blocks        []map[string]interface{}
	TpsPerBlocks  []float64
	TpsPoints     plotter.XYs
	ByteUsed      plotter.XYs
	BytePerSecond plotter.XYs
}

func (*Analysis) CalculateDatasPerBlockAndSet

func (a *Analysis) CalculateDatasPerBlockAndSet()

计算各种数据,然后存储到变量中。

func (*Analysis) CalculatePackageEachMiner

func (a *Analysis) CalculatePackageEachMiner()

func (*Analysis) CalculateTpsPerBlock

func (a *Analysis) CalculateTpsPerBlock()

func (*Analysis) FetchAllBlocks

func (a *Analysis) FetchAllBlocks(blockCount float64)

func (*Analysis) FetchBlockInfo

func (a *Analysis) FetchBlockInfo() map[string]interface{}

func (*Analysis) GetBlock

func (a *Analysis) GetBlock(blockNumber int) map[string]interface{}

func (*Analysis) LoadAllBlocks

func (a *Analysis) LoadAllBlocks(filename string) error

从文件中加载区块数据

func (*Analysis) SaveAllBlocks

func (a *Analysis) SaveAllBlocks()

把区块数据存储在本地

type Drawer

type Drawer struct {
	YLabel string
	// contains filtered or unexported fields
}

一个图

func (*Drawer) Build

func (drawer *Drawer) Build(filename string, rect []float64)

func (*Drawer) DoDraw

func (drawer *Drawer) DoDraw()

func (*Drawer) SetPoint

func (drawer *Drawer) SetPoint(point plotter.XYs, name string)

type Point

type Point struct {
	// contains filtered or unexported fields
}

一条线

func (*Point) GetName

func (point *Point) GetName() string

func (*Point) GetPoints

func (point *Point) GetPoints() plotter.XYs

Jump to

Keyboard shortcuts

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