rwset

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCompositeKey

func CreateCompositeKey(objectType string, attributes []string) (string, error)

func CreateRangeKeysForPartialCompositeKey

func CreateRangeKeysForPartialCompositeKey(objectType string, attributes []string) (string, string, error)

func NewProcessorManager

func NewProcessorManager(sp view.ServiceProvider, network Network, defaultProcessor driver.Processor) *processorManager

func SplitCompositeKey

func SplitCompositeKey(compositeKey string) (string, []string, error)

Types

type Network

type Network interface {
	Channel(name string) (driver.Channel, error)
	TransactionManager() driver.TransactionManager
	Name() string
}

type RWSExtractor

type RWSExtractor interface {
	Extract(tx []byte) (driver.ProcessTransaction, driver.RWSet, error)
}

type UnpackedEnvelope

type UnpackedEnvelope struct {
	NetworkID         string
	TxID              string
	Ch                string
	ChaincodeName     string
	ChaincodeVersion  string
	Input             *peer.ChaincodeInput
	Nonce             []byte
	Creator           []byte
	Results           []byte
	Function          string
	Args              []string
	ChannelHeader     *common.ChannelHeader
	SignatureHeader   *common.SignatureHeader
	ProposalResponses []*peer.ProposalResponse
}

TODO: remove this and merge with that in transaction

func UnpackEnvelope

func UnpackEnvelope(networkID string, env *common.Envelope) (*UnpackedEnvelope, error)

func UnpackEnvelopeFromBytes

func UnpackEnvelopeFromBytes(networkID string, raw []byte) (*UnpackedEnvelope, error)

func (*UnpackedEnvelope) Channel

func (u *UnpackedEnvelope) Channel() string

func (*UnpackedEnvelope) FunctionAndParameters

func (u *UnpackedEnvelope) FunctionAndParameters() (string, []string)

func (*UnpackedEnvelope) ID

func (u *UnpackedEnvelope) ID() string

func (*UnpackedEnvelope) Network

func (u *UnpackedEnvelope) Network() string

Jump to

Keyboard shortcuts

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