Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Offchain ¶
type Offchain struct {
// contains filtered or unexported fields
}
Offchain exposes methods for retrieval of off-chain data
func NewOffchain ¶
NewOffchain creates a new Offchain struct
func (*Offchain) LocalStorageGet ¶
func (c *Offchain) LocalStorageGet(kind StorageKind, key []byte) (*types.StorageDataRaw, error)
LocalStorageGet retrieves the stored data
func (*Offchain) LocalStorageSet ¶
func (c *Offchain) LocalStorageSet(kind StorageKind, key []byte, value []byte) error
LocalStorageSet saves the data
type StorageKind ¶
type StorageKind string
StorageKind ...
const ( // Persistent storage Persistent StorageKind = "PERSISTENT" // Local storage Local StorageKind = "LOCAL" )
Click to show internal directories.
Click to hide internal directories.