msgs

package
v0.0.0-...-579b097 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Status_name = map[int32]string{
	0: "ACTIVE",
	1: "INACTIVE",
	2: "UNDER_CONSTRUCTION",
	3: "UNDER_DELETION",
}
View Source
var Status_value = map[string]int32{
	"ACTIVE":             0,
	"INACTIVE":           1,
	"UNDER_CONSTRUCTION": 2,
	"UNDER_DELETION":     3,
}

Functions

This section is empty.

Types

type BootSnapshotMetadata

type BootSnapshotMetadata struct {
	SingableMetadata     string   `protobuf:"bytes,1,opt,name=singableMetadata,proto3" json:"singableMetadata,omitempty"`
	AdditionalMetadata   string   `protobuf:"bytes,2,opt,name=additionalMetadata,proto3" json:"additionalMetadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

BootSnapshotMetadata captures the metadata of the snapshot that was used to bootstrap the ledger

func (*BootSnapshotMetadata) Descriptor

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

func (*BootSnapshotMetadata) GetAdditionalMetadata

func (m *BootSnapshotMetadata) GetAdditionalMetadata() string

func (*BootSnapshotMetadata) GetSingableMetadata

func (m *BootSnapshotMetadata) GetSingableMetadata() string

func (*BootSnapshotMetadata) ProtoMessage

func (*BootSnapshotMetadata) ProtoMessage()

func (*BootSnapshotMetadata) Reset

func (m *BootSnapshotMetadata) Reset()

func (*BootSnapshotMetadata) String

func (m *BootSnapshotMetadata) String() string

func (*BootSnapshotMetadata) XXX_DiscardUnknown

func (m *BootSnapshotMetadata) XXX_DiscardUnknown()

func (*BootSnapshotMetadata) XXX_Marshal

func (m *BootSnapshotMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BootSnapshotMetadata) XXX_Merge

func (m *BootSnapshotMetadata) XXX_Merge(src proto.Message)

func (*BootSnapshotMetadata) XXX_Size

func (m *BootSnapshotMetadata) XXX_Size() int

func (*BootSnapshotMetadata) XXX_Unmarshal

func (m *BootSnapshotMetadata) XXX_Unmarshal(b []byte) error

type LedgerMetadata

type LedgerMetadata struct {
	Status               Status                `protobuf:"varint,1,opt,name=status,proto3,enum=msgs.Status" json:"status,omitempty"`
	BootSnapshotMetadata *BootSnapshotMetadata `protobuf:"bytes,2,opt,name=boot_snapshot_metadata,json=bootSnapshotMetadata,proto3" json:"boot_snapshot_metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

LedgerMetadata specifies the metadata of a ledger

func (*LedgerMetadata) Descriptor

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

func (*LedgerMetadata) GetBootSnapshotMetadata

func (m *LedgerMetadata) GetBootSnapshotMetadata() *BootSnapshotMetadata

func (*LedgerMetadata) GetStatus

func (m *LedgerMetadata) GetStatus() Status

func (*LedgerMetadata) ProtoMessage

func (*LedgerMetadata) ProtoMessage()

func (*LedgerMetadata) Reset

func (m *LedgerMetadata) Reset()

func (*LedgerMetadata) String

func (m *LedgerMetadata) String() string

func (*LedgerMetadata) XXX_DiscardUnknown

func (m *LedgerMetadata) XXX_DiscardUnknown()

func (*LedgerMetadata) XXX_Marshal

func (m *LedgerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LedgerMetadata) XXX_Merge

func (m *LedgerMetadata) XXX_Merge(src proto.Message)

func (*LedgerMetadata) XXX_Size

func (m *LedgerMetadata) XXX_Size() int

func (*LedgerMetadata) XXX_Unmarshal

func (m *LedgerMetadata) XXX_Unmarshal(b []byte) error

type Status

type Status int32

Status specifies the status of a ledger

const (
	Status_ACTIVE             Status = 0
	Status_INACTIVE           Status = 1
	Status_UNDER_CONSTRUCTION Status = 2
	Status_UNDER_DELETION     Status = 3
)

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

Jump to

Keyboard shortcuts

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