Documentation ¶
Index ¶
- func GetActionFromEnvelopeMsg(env *common.Envelope) (*peer.ChaincodeAction, error)
- func GetChannelIDFromBlock(block *common.Block) (string, error)
- func GetEnvelopeFromBlock(data []byte) (*common.Envelope, error)
- func GetPayloads(txActions *peer.TransactionAction) (*peer.ChaincodeActionPayload, *peer.ChaincodeAction, error)
- func UnmarshalChaincodeAction(caBytes []byte) (*peer.ChaincodeAction, error)
- func UnmarshalChaincodeActionPayload(capBytes []byte) (*peer.ChaincodeActionPayload, error)
- func UnmarshalChaincodeEvents(eBytes []byte) (*peer.ChaincodeEvent, error)
- func UnmarshalChannelHeader(bytes []byte) (*common.ChannelHeader, error)
- func UnmarshalPayload(encoded []byte) (*common.Payload, error)
- func UnmarshalProposalResponsePayload(prpBytes []byte) (*peer.ProposalResponsePayload, error)
- func UnmarshalTransaction(txBytes []byte) (*peer.Transaction, error)
- type Block
- type Transaction
- type TransactionEvent
- type TransactionRead
- type TransactionWrite
- type TxType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActionFromEnvelopeMsg ¶
func GetActionFromEnvelopeMsg(env *common.Envelope) (*peer.ChaincodeAction, error)
func GetChannelIDFromBlock ¶
GetChannelIDFromBlock returns channel ID in the block
func GetPayloads ¶
func GetPayloads(txActions *peer.TransactionAction) (*peer.ChaincodeActionPayload, *peer.ChaincodeAction, error)
GetPayloads gets the underlying payload objects in a TransactionAction
func UnmarshalChaincodeAction ¶
func UnmarshalChaincodeAction(caBytes []byte) (*peer.ChaincodeAction, error)
func UnmarshalChaincodeActionPayload ¶
func UnmarshalChaincodeActionPayload(capBytes []byte) (*peer.ChaincodeActionPayload, error)
func UnmarshalChaincodeEvents ¶
func UnmarshalChaincodeEvents(eBytes []byte) (*peer.ChaincodeEvent, error)
func UnmarshalChannelHeader ¶
func UnmarshalChannelHeader(bytes []byte) (*common.ChannelHeader, error)
func UnmarshalProposalResponsePayload ¶
func UnmarshalProposalResponsePayload(prpBytes []byte) (*peer.ProposalResponsePayload, error)
func UnmarshalTransaction ¶
func UnmarshalTransaction(txBytes []byte) (*peer.Transaction, error)
Types ¶
type Block ¶
type Block struct { Number int DataHash string Transactions []*Transaction CreatedAt *time.Time }
type Transaction ¶
type Transaction struct { ID string Type TxType ChannelID string CreatedAt time.Time ChaincodeID string Version string Path string Response []byte Request []byte Event TransactionEvent Writes []*TransactionWrite Reads []*TransactionRead }
type TransactionEvent ¶
type TransactionRead ¶
type TransactionWrite ¶
Click to show internal directories.
Click to hide internal directories.