file

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContractStats

func NewContractStats() map[string]*contractStat

Types

type NetStats

type NetStats struct {
	ContractStats map[string]*contractStat `json:"contract_stats,omitempty"`
	CreatedAt     int64                    `json:"created_at,omitempty"`
	UpdatedAt     int64                    `json:"updated_at,omitempty"`
}

func (*NetStats) Get

func (ns *NetStats) Get(contract string) (*contractStat, bool)

func (*NetStats) Set

func (ns *NetStats) Set(contract string, bytes uint64) bool

func (*NetStats) Update

func (ns *NetStats) Update(contract string, bytes uint64) bool

Jump to

Keyboard shortcuts

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