networkv1

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SlotStatus_UpdateType_name = map[int32]string{
		0: "UPDATE_TYPE_UNSPECIFIED",
		1: "UPDATE_TYPE_FIRST_SHRED_RECEIVED",
		2: "UPDATE_TYPE_COMPLETED",
		3: "UPDATE_TYPE_CREATED_BANK",
		4: "UPDATE_TYPE_FROZEN",
		5: "UPDATE_TYPE_DEAD",
		6: "UPDATE_TYPE_OPTIMISTIC_CONFIRMATION",
		7: "UPDATE_TYPE_ROOT",
	}
	SlotStatus_UpdateType_value = map[string]int32{
		"UPDATE_TYPE_UNSPECIFIED":             0,
		"UPDATE_TYPE_FIRST_SHRED_RECEIVED":    1,
		"UPDATE_TYPE_COMPLETED":               2,
		"UPDATE_TYPE_CREATED_BANK":            3,
		"UPDATE_TYPE_FROZEN":                  4,
		"UPDATE_TYPE_DEAD":                    5,
		"UPDATE_TYPE_OPTIMISTIC_CONFIRMATION": 6,
		"UPDATE_TYPE_ROOT":                    7,
	}
)

Enum value maps for SlotStatus_UpdateType.

View Source
var File_proto_network_v1_slot_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SlotStatus

type SlotStatus struct {

	// Slot number
	Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
	// Millisecond UNIX timestamp of the observation on the Solana node.
	// Depends on accurate local clocks.
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// One-way delay between the Solana node and the client.
	Delay uint64                `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
	Type  SlotStatus_UpdateType `protobuf:"varint,4,opt,name=type,proto3,enum=proto.network.v1.SlotStatus_UpdateType" json:"type,omitempty"`
	// For type == CREATED_BANK, the parent slot number is included.
	Parent uint64 `protobuf:"varint,5,opt,name=parent,proto3" json:"parent,omitempty"`
	// For type == FROZEN, extra transaction stats are included.
	Stats *TxStats `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"`
	// For type == DEAD, an error is included.
	// TODO: solana-go doesn't currently expose this
	Err string `protobuf:"bytes,7,opt,name=err,proto3" json:"err,omitempty"`
	// Slot's leader as base58 string (looked up by the ingester)
	Leader string `protobuf:"bytes,8,opt,name=leader,proto3" json:"leader,omitempty"`
	// Source node identifier
	Source string `protobuf:"bytes,9,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

See client/src/rpc_response.rs.

func (*SlotStatus) Descriptor deprecated

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

Deprecated: Use SlotStatus.ProtoReflect.Descriptor instead.

func (*SlotStatus) GetDelay

func (x *SlotStatus) GetDelay() uint64

func (*SlotStatus) GetErr

func (x *SlotStatus) GetErr() string

func (*SlotStatus) GetLeader

func (x *SlotStatus) GetLeader() string

func (*SlotStatus) GetParent

func (x *SlotStatus) GetParent() uint64

func (*SlotStatus) GetSlot

func (x *SlotStatus) GetSlot() uint64

func (*SlotStatus) GetSource

func (x *SlotStatus) GetSource() string

func (*SlotStatus) GetStats

func (x *SlotStatus) GetStats() *TxStats

func (*SlotStatus) GetTimestamp

func (x *SlotStatus) GetTimestamp() uint64

func (*SlotStatus) GetType

func (x *SlotStatus) GetType() SlotStatus_UpdateType

func (*SlotStatus) ProtoMessage

func (*SlotStatus) ProtoMessage()

func (*SlotStatus) ProtoReflect

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

func (*SlotStatus) Reset

func (x *SlotStatus) Reset()

func (*SlotStatus) String

func (x *SlotStatus) String() string

type SlotStatus_UpdateType

type SlotStatus_UpdateType int32

Update type

const (
	SlotStatus_UPDATE_TYPE_UNSPECIFIED             SlotStatus_UpdateType = 0
	SlotStatus_UPDATE_TYPE_FIRST_SHRED_RECEIVED    SlotStatus_UpdateType = 1
	SlotStatus_UPDATE_TYPE_COMPLETED               SlotStatus_UpdateType = 2
	SlotStatus_UPDATE_TYPE_CREATED_BANK            SlotStatus_UpdateType = 3
	SlotStatus_UPDATE_TYPE_FROZEN                  SlotStatus_UpdateType = 4
	SlotStatus_UPDATE_TYPE_DEAD                    SlotStatus_UpdateType = 5
	SlotStatus_UPDATE_TYPE_OPTIMISTIC_CONFIRMATION SlotStatus_UpdateType = 6
	SlotStatus_UPDATE_TYPE_ROOT                    SlotStatus_UpdateType = 7
)

func (SlotStatus_UpdateType) Descriptor

func (SlotStatus_UpdateType) Enum

func (SlotStatus_UpdateType) EnumDescriptor deprecated

func (SlotStatus_UpdateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SlotStatus_UpdateType.Descriptor instead.

func (SlotStatus_UpdateType) Number

func (SlotStatus_UpdateType) String

func (x SlotStatus_UpdateType) String() string

func (SlotStatus_UpdateType) Type

type TxStats

type TxStats struct {
	NumTransactionEntries     uint64 `` /* 127-byte string literal not displayed */
	NumSuccessfulTransactions uint64 `` /* 139-byte string literal not displayed */
	NumFailedTransactions     uint64 `` /* 127-byte string literal not displayed */
	MaxTransactionsPerEntry   uint64 `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TxStats) Descriptor deprecated

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

Deprecated: Use TxStats.ProtoReflect.Descriptor instead.

func (*TxStats) GetMaxTransactionsPerEntry

func (x *TxStats) GetMaxTransactionsPerEntry() uint64

func (*TxStats) GetNumFailedTransactions

func (x *TxStats) GetNumFailedTransactions() uint64

func (*TxStats) GetNumSuccessfulTransactions

func (x *TxStats) GetNumSuccessfulTransactions() uint64

func (*TxStats) GetNumTransactionEntries

func (x *TxStats) GetNumTransactionEntries() uint64

func (*TxStats) ProtoMessage

func (*TxStats) ProtoMessage()

func (*TxStats) ProtoReflect

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

func (*TxStats) Reset

func (x *TxStats) Reset()

func (*TxStats) String

func (x *TxStats) String() string

Jump to

Keyboard shortcuts

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