rwset

package
v1.1.0-preview Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package rwset is a generated protocol buffer package.

It is generated from these files:

ledger/rwset/rwset.proto

It has these top-level messages:

TxReadWriteSet
NsReadWriteSet
CollectionHashedReadWriteSet
TxPvtReadWriteSet
NsPvtReadWriteSet
CollectionPvtReadWriteSet

Index

Constants

This section is empty.

Variables

View Source
var TxReadWriteSet_DataModel_name = map[int32]string{
	0: "KV",
}
View Source
var TxReadWriteSet_DataModel_value = map[string]int32{
	"KV": 0,
}

Functions

This section is empty.

Types

type CollectionHashedReadWriteSet

type CollectionHashedReadWriteSet struct {
	CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"`
	HashedRwset    []byte `protobuf:"bytes,2,opt,name=hashed_rwset,json=hashedRwset,proto3" json:"hashed_rwset,omitempty"`
	PvtRwsetHash   []byte `protobuf:"bytes,3,opt,name=pvt_rwset_hash,json=pvtRwsetHash,proto3" json:"pvt_rwset_hash,omitempty"`
}

CollectionHashedReadWriteSet encapsulate the hashed representation for the private read-write set for a collection

func (*CollectionHashedReadWriteSet) Descriptor

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

func (*CollectionHashedReadWriteSet) GetCollectionName

func (m *CollectionHashedReadWriteSet) GetCollectionName() string

func (*CollectionHashedReadWriteSet) GetHashedRwset

func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte

func (*CollectionHashedReadWriteSet) GetPvtRwsetHash

func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte

func (*CollectionHashedReadWriteSet) ProtoMessage

func (*CollectionHashedReadWriteSet) ProtoMessage()

func (*CollectionHashedReadWriteSet) Reset

func (m *CollectionHashedReadWriteSet) Reset()

func (*CollectionHashedReadWriteSet) String

type CollectionPvtReadWriteSet

type CollectionPvtReadWriteSet struct {
	CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName" json:"collection_name,omitempty"`
	Rwset          []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
}

CollectionPvtReadWriteSet encapsulates the private read-write set for a collection

func (*CollectionPvtReadWriteSet) Descriptor

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

func (*CollectionPvtReadWriteSet) GetCollectionName

func (m *CollectionPvtReadWriteSet) GetCollectionName() string

func (*CollectionPvtReadWriteSet) GetRwset

func (m *CollectionPvtReadWriteSet) GetRwset() []byte

func (*CollectionPvtReadWriteSet) ProtoMessage

func (*CollectionPvtReadWriteSet) ProtoMessage()

func (*CollectionPvtReadWriteSet) Reset

func (m *CollectionPvtReadWriteSet) Reset()

func (*CollectionPvtReadWriteSet) String

func (m *CollectionPvtReadWriteSet) String() string

type NsPvtReadWriteSet

type NsPvtReadWriteSet struct {
	Namespace          string                       `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"`
	CollectionPvtRwset []*CollectionPvtReadWriteSet `protobuf:"bytes,2,rep,name=collection_pvt_rwset,json=collectionPvtRwset" json:"collection_pvt_rwset,omitempty"`
}

NsPvtReadWriteSet encapsulates the private read-write set for a chaincode

func (*NsPvtReadWriteSet) Descriptor

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

func (*NsPvtReadWriteSet) GetCollectionPvtRwset

func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet

func (*NsPvtReadWriteSet) GetNamespace

func (m *NsPvtReadWriteSet) GetNamespace() string

func (*NsPvtReadWriteSet) ProtoMessage

func (*NsPvtReadWriteSet) ProtoMessage()

func (*NsPvtReadWriteSet) Reset

func (m *NsPvtReadWriteSet) Reset()

func (*NsPvtReadWriteSet) String

func (m *NsPvtReadWriteSet) String() string

type NsReadWriteSet

type NsReadWriteSet struct {
	Namespace             string                          `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"`
	Rwset                 []byte                          `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
	CollectionHashedRwset []*CollectionHashedReadWriteSet `protobuf:"bytes,3,rep,name=collection_hashed_rwset,json=collectionHashedRwset" json:"collection_hashed_rwset,omitempty"`
}

NsReadWriteSet encapsulates the read-write set for a chaincode

func (*NsReadWriteSet) Descriptor

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

func (*NsReadWriteSet) GetCollectionHashedRwset

func (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet

func (*NsReadWriteSet) GetNamespace

func (m *NsReadWriteSet) GetNamespace() string

func (*NsReadWriteSet) GetRwset

func (m *NsReadWriteSet) GetRwset() []byte

func (*NsReadWriteSet) ProtoMessage

func (*NsReadWriteSet) ProtoMessage()

func (*NsReadWriteSet) Reset

func (m *NsReadWriteSet) Reset()

func (*NsReadWriteSet) String

func (m *NsReadWriteSet) String() string

type TxPvtReadWriteSet

type TxPvtReadWriteSet struct {
	DataModel  TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"`
	NsPvtRwset []*NsPvtReadWriteSet     `protobuf:"bytes,2,rep,name=ns_pvt_rwset,json=nsPvtRwset" json:"ns_pvt_rwset,omitempty"`
}

TxPvtReadWriteSet encapsulate the private read-write set for a transaction

func (*TxPvtReadWriteSet) Descriptor

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

func (*TxPvtReadWriteSet) GetDataModel

func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel

func (*TxPvtReadWriteSet) GetNsPvtRwset

func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet

func (*TxPvtReadWriteSet) ProtoMessage

func (*TxPvtReadWriteSet) ProtoMessage()

func (*TxPvtReadWriteSet) Reset

func (m *TxPvtReadWriteSet) Reset()

func (*TxPvtReadWriteSet) String

func (m *TxPvtReadWriteSet) String() string

type TxReadWriteSet

type TxReadWriteSet struct {
	DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"`
	NsRwset   []*NsReadWriteSet        `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset" json:"ns_rwset,omitempty"`
}

TxReadWriteSet encapsulates a read-write set for a transaction DataModel specifies the enum value of the data model ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode)

func (*TxReadWriteSet) Descriptor

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

func (*TxReadWriteSet) GetDataModel

func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel

func (*TxReadWriteSet) GetNsRwset

func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet

func (*TxReadWriteSet) ProtoMessage

func (*TxReadWriteSet) ProtoMessage()

func (*TxReadWriteSet) Reset

func (m *TxReadWriteSet) Reset()

func (*TxReadWriteSet) String

func (m *TxReadWriteSet) String() string

type TxReadWriteSet_DataModel

type TxReadWriteSet_DataModel int32
const (
	TxReadWriteSet_KV TxReadWriteSet_DataModel = 0
)

func (TxReadWriteSet_DataModel) EnumDescriptor

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

func (TxReadWriteSet_DataModel) String

func (x TxReadWriteSet_DataModel) String() string

Directories

Path Synopsis
Package kvrwset is a generated protocol buffer package.
Package kvrwset is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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