fabric: github.com/hyperledger/fabric/core/ledger/kvledger/msgs Index | Files

package msgs

import "github.com/hyperledger/fabric/core/ledger/kvledger/msgs"

Index

Package Files

ledger_metadata.pb.go

Variables

var Status_name = map[int32]string{
    0:  "ACTIVE",
    1:  "INACTIVE",
}
var Status_value = map[string]int32{
    "ACTIVE":   0,
    "INACTIVE": 1,
}

type LedgerMetadata Uses

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

LedgerMetadata specifies the metadata of a ledger

func (*LedgerMetadata) Descriptor Uses

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

func (*LedgerMetadata) GetStatus Uses

func (m *LedgerMetadata) GetStatus() Status

func (*LedgerMetadata) ProtoMessage Uses

func (*LedgerMetadata) ProtoMessage()

func (*LedgerMetadata) Reset Uses

func (m *LedgerMetadata) Reset()

func (*LedgerMetadata) String Uses

func (m *LedgerMetadata) String() string

func (*LedgerMetadata) XXX_DiscardUnknown Uses

func (m *LedgerMetadata) XXX_DiscardUnknown()

func (*LedgerMetadata) XXX_Marshal Uses

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

func (*LedgerMetadata) XXX_Merge Uses

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

func (*LedgerMetadata) XXX_Size Uses

func (m *LedgerMetadata) XXX_Size() int

func (*LedgerMetadata) XXX_Unmarshal Uses

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

type Status Uses

type Status int32

Status specifies the status of a ledger

const (
    Status_ACTIVE   Status = 0
    Status_INACTIVE Status = 1
)

func (Status) EnumDescriptor Uses

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

func (Status) String Uses

func (x Status) String() string

Package msgs imports 3 packages (graph) and is imported by 1 packages. Updated 2019-11-16. Refresh now. Tools for package owners.