models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downtime added in v0.2.0

type Downtime struct {
	ID     int `storm:"id,increment"`
	NodeId string
	End    time.Time
	Start  time.Time
}

type LatestBlockMetrics added in v0.2.0

type LatestBlockMetrics struct {
	BestBlockHeight      int64
	FinalizedBlockHeight int64
}

type Metrics

type Metrics struct {
	NodeId                string `storm:"id"`
	PeerCount             int32
	BestBlockHeight       int64
	FinalizedBlockHeight  int64
	ReadyTransactionCount int32
}

type Node

type Node struct {
	ID            string `storm:"id"`
	ConfigHash    string
	PayoutAddress string
	Token         string
	Cooldown      int
	LastUsed      int64
}

type Ping

type Ping struct {
	NodeId    string `storm:"id"`
	Timestamp time.Time
}

type Record added in v0.2.0

type Record struct {
	ID        int `storm:"id,increment"`
	NodeId    string
	Status    string
	Timestamp time.Time
}

Jump to

Keyboard shortcuts

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