Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentMessage ¶
type AgentMessage interface {
ipld.View
// Invocations is a list of links to the root block of invocations than can
// be found in the message.
Invocations() []ipld.Link
// Get a given invocation from the message by root CID.
Invocation(root ipld.Link) (invocation.Invocation, bool, error)
// Receipts is a list of links to the root block of receipts that can be
// found in the message.
Receipts() []ipld.Link
// Get a given receipt from the message by root CID.
Receipt(root ipld.Link) (receipt.AnyReceipt, bool, error)
// Get returns a receipt link from the message, given an invocation link.
Get(link ipld.Link) (ipld.Link, bool)
}
func Build ¶
func Build(invocations []invocation.Invocation, receipts []receipt.AnyReceipt) (AgentMessage, error)
func NewMessage ¶
func NewMessage(root ipld.Link, blks blockstore.BlockReader) (AgentMessage, error)
Click to show internal directories.
Click to hide internal directories.