status

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Status_CORRUPTED_DATA = "CORRUPTED_DATA"
View Source
const Status_NORMAL = "NORMAL"
View Source
const Status_UNKNOWN = "UNKNOWN"

Variables

This section is empty.

Functions

func NewStatusReportPQ

func NewStatusReportPQ() *statusReportPQ

Types

type StatusReport

type StatusReport struct {
	SignerID      string    `json:"signer_id"`
	Time          time.Time `json:"time"`
	TimeZone      string    `json:"time_zone"`
	Status        string    `json:"status"`
	PrevTxID      uint64    `json:"prev_tx_id"`
	PrevStateHash string    `json:"prev_state_hash"`
	NewTxID       uint64    `json:"new_tx_id"`
	NewStateHash  string    `json:"new_state_hash"`
}

type StatusReportMap

type StatusReportMap struct {
	M map[string]*statusReportPQ `json:"status"`
	// contains filtered or unexported fields
}

func NewStatusReportMap

func NewStatusReportMap(size int) *StatusReportMap

func (*StatusReportMap) Add

func (m *StatusReportMap) Add(report StatusReport)

func (*StatusReportMap) GetAllByLedger

func (m *StatusReportMap) GetAllByLedger() map[string][]*StatusReport

Jump to

Keyboard shortcuts

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