validatorrecord

package
v0.0.0-...-6e04e41 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateValidatorRecordList

func UpdateValidatorRecordList(filepath string, validaterRecordList []*ValidatorRecord) error

Types

type ValidatorRecord

type ValidatorRecord struct {
	ValidatorId       uint64    `json:"validatorId"`       // 验证者的ID
	Host              string    `json:"host"`              // 验证者的节点Host
	LastConnectedTime time.Time `json:"lastConnectedTime"` // 上次连接的时间
}

type ValidatorRecordMgr

type ValidatorRecordMgr struct {
	ValidatorRecordList []*ValidatorRecord
	// contains filtered or unexported fields
}

func LoadValidatorRecordList

func LoadValidatorRecordList(path string) *ValidatorRecordMgr

func (*ValidatorRecordMgr) UpdateValidatorRecord

func (vrm *ValidatorRecordMgr) UpdateValidatorRecord(validatorId uint64, host string)

Jump to

Keyboard shortcuts

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