Documentation ¶
Index ¶
- type ChannelConfig
- type Envelope
- type InvalidErr
- type KeyValueItr
- type Processor
- type ProcessorCreator
- type PvtdataSourceHinter
- type ReadHinter
- type ReprocessReadHinter
- type Reprocessor
- type State
- func (s *State) GetPrivateDataMetadataByHash(ns, coll string, keyHash []byte) (map[string][]byte, error)
- func (s *State) GetState(ns, key string) ([]byte, error)
- func (s *State) GetStateMetadata(ns, key string) (map[string][]byte, error)
- func (s *State) GetStateRangeScanIterator(ns, startKey, endKey string) (*KeyValueItr, error)
- func (s *State) SetState(ns, key string, value []byte) error
- func (s *State) SetStateMetadata(ns, key string, metadata map[string][]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelConfig ¶
type ChannelConfig struct { }
type Envelope ¶
type Envelope struct { SignedBytes []byte Signature []byte Data []byte ChannelHeaderBytes []byte SignatureHeaderBytes []byte ChannelHeader *common.ChannelHeader SignatureHeader *common.SignatureHeader }
type InvalidErr ¶
type InvalidErr struct { ActualErr error ValidationCode peer.TxValidationCode }
func (*InvalidErr) Error ¶
func (e *InvalidErr) Error() string
type KeyValueItr ¶
type KeyValueItr struct {
BackingItr keyValueItr
}
func (*KeyValueItr) Close ¶
func (i *KeyValueItr) Close()
type Processor ¶
type Processor interface { Preprocess(latestChannelConfig *ChannelConfig) error Process(state *State, proposedWrites *statedata.ProposedWrites) error Done() }
type ProcessorCreator ¶
type PvtdataSourceHinter ¶
type PvtdataSourceHinter interface {
PvtdataSource() [][]byte
}
type ReadHinter ¶
type ReprocessReadHinter ¶
type Reprocessor ¶
type Reprocessor interface {
Reprocess(state *State, latestChannelConfig *ChannelConfig, proposedWrites *statedata.ProposedWrites)
}
type State ¶
type State struct {
BackingState state
}
func (*State) GetPrivateDataMetadataByHash ¶
func (*State) GetStateMetadata ¶
func (*State) GetStateRangeScanIterator ¶
func (s *State) GetStateRangeScanIterator(ns, startKey, endKey string) (*KeyValueItr, error)
Click to show internal directories.
Click to hide internal directories.