Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalRecordValue ¶
func MarshalRecordValue(r RecordValue) ([]byte, error)
MarshalRecordValue serializes RecordValue to send it through libp2p protocol.
Types ¶
type Machine ¶
type Machine interface { Update(writer peer.ID, k string, update xr.Dict, metadata ...meta.Metadata) error // Updates the dictionary in the writer's private space. Get(k string) RecordValue // Get the full Record in a key // NOTE: No query operation will be supported until we figure out selectors // Query(key string, selector Selector) (RecordValue, error) Close() error }
Machine captures the public interface of a smart record virtual machine.
type RecordValue ¶
RecordValue determines the structure used by the VM to interact with the outside world, outputing disassembled syntactic dicts.
func UnmarshalRecordValue ¶
func UnmarshalRecordValue(b []byte) (RecordValue, error)
UnmarshalRecordValue unmarshals a serialized representation of RecordValue
Click to show internal directories.
Click to hide internal directories.