model

package
v0.0.0-...-4fb02c9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_domain_network_model_network_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type NetworkStats

type NetworkStats struct {
	TotalBlocks       int64                  `protobuf:"varint,1,opt,name=total_blocks,json=totalBlocks,proto3" json:"total_blocks,omitempty"`
	TotalTransactions int64                  `protobuf:"varint,2,opt,name=total_transactions,json=totalTransactions,proto3" json:"total_transactions,omitempty"`
	TotalAccounts     int64                  `protobuf:"varint,3,opt,name=total_accounts,json=totalAccounts,proto3" json:"total_accounts,omitempty"`
	LatestBlockHeight uint32                 `protobuf:"varint,4,opt,name=latest_block_height,json=latestBlockHeight,proto3" json:"latest_block_height,omitempty"`
	LatestBlockTime   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=latest_block_time,json=latestBlockTime,proto3" json:"latest_block_time,omitempty"`
	// contains filtered or unexported fields
}

Represents the statistics of the blockchain network.

func (*NetworkStats) Descriptor deprecated

func (*NetworkStats) Descriptor() ([]byte, []int)

Deprecated: Use NetworkStats.ProtoReflect.Descriptor instead.

func (*NetworkStats) GetLatestBlockHeight

func (x *NetworkStats) GetLatestBlockHeight() uint32

func (*NetworkStats) GetLatestBlockTime

func (x *NetworkStats) GetLatestBlockTime() *timestamppb.Timestamp

func (*NetworkStats) GetTotalAccounts

func (x *NetworkStats) GetTotalAccounts() int64

func (*NetworkStats) GetTotalBlocks

func (x *NetworkStats) GetTotalBlocks() int64

func (*NetworkStats) GetTotalTransactions

func (x *NetworkStats) GetTotalTransactions() int64

func (*NetworkStats) ProtoMessage

func (*NetworkStats) ProtoMessage()

func (*NetworkStats) ProtoReflect

func (x *NetworkStats) ProtoReflect() protoreflect.Message

func (*NetworkStats) Reset

func (x *NetworkStats) Reset()

func (*NetworkStats) String

func (x *NetworkStats) String() string

type NodeStatus

type NodeStatus struct {
	NodeId      []byte                 `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	IsConnected bool                   `protobuf:"varint,2,opt,name=is_connected,json=isConnected,proto3" json:"is_connected,omitempty"`
	LastActive  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_active,json=lastActive,proto3" json:"last_active,omitempty"`
	// contains filtered or unexported fields
}

Represents the status of a node in the blockchain network.

func (*NodeStatus) Descriptor deprecated

func (*NodeStatus) Descriptor() ([]byte, []int)

Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead.

func (*NodeStatus) GetIsConnected

func (x *NodeStatus) GetIsConnected() bool

func (*NodeStatus) GetLastActive

func (x *NodeStatus) GetLastActive() *timestamppb.Timestamp

func (*NodeStatus) GetNodeId

func (x *NodeStatus) GetNodeId() []byte

func (*NodeStatus) ProtoMessage

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) ProtoReflect

func (x *NodeStatus) ProtoReflect() protoreflect.Message

func (*NodeStatus) Reset

func (x *NodeStatus) Reset()

func (*NodeStatus) String

func (x *NodeStatus) String() string

Jump to

Keyboard shortcuts

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