rwset

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

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,proto3" 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CollectionHashedReadWriteSet封装集合的专用读写集的哈希表示形式

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

func (*CollectionHashedReadWriteSet) XXX_DiscardUnknown

func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown()

func (*CollectionHashedReadWriteSet) XXX_Marshal

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

func (*CollectionHashedReadWriteSet) XXX_Merge

func (dst *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message)

func (*CollectionHashedReadWriteSet) XXX_Size

func (m *CollectionHashedReadWriteSet) XXX_Size() int

func (*CollectionHashedReadWriteSet) XXX_Unmarshal

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

type CollectionPvtReadWriteSet

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

CollectionPvTreadWriteSet封装集合的专用读写集

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

func (*CollectionPvtReadWriteSet) XXX_DiscardUnknown

func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown()

func (*CollectionPvtReadWriteSet) XXX_Marshal

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

func (*CollectionPvtReadWriteSet) XXX_Merge

func (dst *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message)

func (*CollectionPvtReadWriteSet) XXX_Size

func (m *CollectionPvtReadWriteSet) XXX_Size() int

func (*CollectionPvtReadWriteSet) XXX_Unmarshal

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

type DynamicCollectionHashedReadWriteSet

type DynamicCollectionHashedReadWriteSet struct {
	*CollectionHashedReadWriteSet
	DataModel TxReadWriteSet_DataModel
}

func (*DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFieldProto

func (dchrws *DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFields

func (dchrws *DynamicCollectionHashedReadWriteSet) StaticallyOpaqueFields() []string

func (*DynamicCollectionHashedReadWriteSet) Underlying

func (dchrws *DynamicCollectionHashedReadWriteSet) Underlying() proto.Message

type DynamicNsReadWriteSet

type DynamicNsReadWriteSet struct {
	*NsReadWriteSet
	DataModel TxReadWriteSet_DataModel
}

func (*DynamicNsReadWriteSet) DynamicSliceFieldProto

func (dnrws *DynamicNsReadWriteSet) DynamicSliceFieldProto(name string, index int, base proto.Message) (proto.Message, error)

func (*DynamicNsReadWriteSet) DynamicSliceFields

func (dnrws *DynamicNsReadWriteSet) DynamicSliceFields() []string

func (*DynamicNsReadWriteSet) StaticallyOpaqueFieldProto

func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFieldProto(name string) (proto.Message, error)

func (*DynamicNsReadWriteSet) StaticallyOpaqueFields

func (dnrws *DynamicNsReadWriteSet) StaticallyOpaqueFields() []string

func (*DynamicNsReadWriteSet) Underlying

func (dnrws *DynamicNsReadWriteSet) Underlying() proto.Message

type NsPvtReadWriteSet

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

nspvtreadwriteset封装链码的专用读写集

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

func (*NsPvtReadWriteSet) XXX_DiscardUnknown

func (m *NsPvtReadWriteSet) XXX_DiscardUnknown()

func (*NsPvtReadWriteSet) XXX_Marshal

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

func (*NsPvtReadWriteSet) XXX_Merge

func (dst *NsPvtReadWriteSet) XXX_Merge(src proto.Message)

func (*NsPvtReadWriteSet) XXX_Size

func (m *NsPvtReadWriteSet) XXX_Size() int

func (*NsPvtReadWriteSet) XXX_Unmarshal

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

type NsReadWriteSet

type NsReadWriteSet struct {
	Namespace             string                          `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Rwset                 []byte                          `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
	CollectionHashedRwset []*CollectionHashedReadWriteSet `` /* 126-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                        `json:"-"`
	XXX_unrecognized      []byte                          `json:"-"`
	XXX_sizecache         int32                           `json:"-"`
}

NsreadWriteset封装链码的读写集

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

func (*NsReadWriteSet) XXX_DiscardUnknown

func (m *NsReadWriteSet) XXX_DiscardUnknown()

func (*NsReadWriteSet) XXX_Marshal

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

func (*NsReadWriteSet) XXX_Merge

func (dst *NsReadWriteSet) XXX_Merge(src proto.Message)

func (*NsReadWriteSet) XXX_Size

func (m *NsReadWriteSet) XXX_Size() int

func (*NsReadWriteSet) XXX_Unmarshal

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

type TxPvtReadWriteSet

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

txpvtreadwriteset封装事务的专用读写集

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) Remove

func (p *TxPvtReadWriteSet) Remove(ns, coll string)

移除移除给定元组的rwset。如果在移除之后, 命名空间中不再有集合,将删除整个命名空间条目。

func (*TxPvtReadWriteSet) Reset

func (m *TxPvtReadWriteSet) Reset()

func (*TxPvtReadWriteSet) String

func (m *TxPvtReadWriteSet) String() string

func (*TxPvtReadWriteSet) XXX_DiscardUnknown

func (m *TxPvtReadWriteSet) XXX_DiscardUnknown()

func (*TxPvtReadWriteSet) XXX_Marshal

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

func (*TxPvtReadWriteSet) XXX_Merge

func (dst *TxPvtReadWriteSet) XXX_Merge(src proto.Message)

func (*TxPvtReadWriteSet) XXX_Size

func (m *TxPvtReadWriteSet) XXX_Size() int

func (*TxPvtReadWriteSet) XXX_Unmarshal

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

type TxReadWriteSet

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

txreadwriteset封装事务的读写集 data model指定数据模型的枚举值 nsrwset字段指定链码特定读写集的列表(每个链码一个)

func (*TxReadWriteSet) Descriptor

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

func (*TxReadWriteSet) DynamicSliceFieldProto

func (txrws *TxReadWriteSet) DynamicSliceFieldProto(name string, index int, base proto.Message) (proto.Message, error)

func (*TxReadWriteSet) DynamicSliceFields

func (txrws *TxReadWriteSet) DynamicSliceFields() []string

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

func (*TxReadWriteSet) XXX_DiscardUnknown

func (m *TxReadWriteSet) XXX_DiscardUnknown()

func (*TxReadWriteSet) XXX_Marshal

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

func (*TxReadWriteSet) XXX_Merge

func (dst *TxReadWriteSet) XXX_Merge(src proto.Message)

func (*TxReadWriteSet) XXX_Size

func (m *TxReadWriteSet) XXX_Size() int

func (*TxReadWriteSet) XXX_Unmarshal

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

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

Jump to

Keyboard shortcuts

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