status

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameBlock       = "block"
	NameUtxo        = "utxo"
	NameDoubleSpend = "double-spend"
	NameLockHeight  = "lock-height"
	NameMemo        = "memo"
)
View Source
const NoShard = -1

Variables

This section is empty.

Functions

func GetStatusShardName

func GetStatusShardName(name string, shard int) string

Types

type BlockHeight

type BlockHeight struct {
	Height int64
	Block  []byte
}

type Height

type Height struct {
	Name        string
	StartHeight int64
}

func NewHeight

func NewHeight(name string, startHeight int64) *Height

func (*Height) GetHeight

func (s *Height) GetHeight() (BlockHeight, error)

func (*Height) SetHeight

func (s *Height) SetHeight(blockHeight BlockHeight) error

type Status

type Status struct {
	Topic  string
	Shard  uint
	Status *item.ProcessStatus
}

func NewStatus

func NewStatus(topic string, shard uint) *Status

func (*Status) GetStatus

func (s *Status) GetStatus() ([]byte, error)

func (*Status) SetStatus

func (s *Status) SetStatus(status []byte) error

Jump to

Keyboard shortcuts

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