Documentation
¶
Index ¶
- type BoolMap
- type Bytable
- type BytesArray
- type BytesMap
- type CommitEvent
- type FromBytesHelper
- type GeneralMap
- type Int64Map
- type JsonBytesMap
- type LocalStorage
- func (sto *LocalStorage) Commit() (root []byte, err error)
- func (sto *LocalStorage) GetBool(variName string) bool
- func (sto *LocalStorage) GetBytes(variName string) []byte
- func (sto *LocalStorage) GetInt64(variName string) int64
- func (sto *LocalStorage) GetInt8(variName string) int8
- func (sto *LocalStorage) GetString(variName string) string
- func (sto *LocalStorage) GetUint256(variName string) *math.Uint256
- func (sto *LocalStorage) GetUint64(variName string) uint64
- func (sto *LocalStorage) GetUint8(variName string) uint8
- func (sto *LocalStorage) NewBoolMap(mapName string) *BoolMap
- func (sto *LocalStorage) NewBytesArray(arrName string) *BytesArray
- func (sto *LocalStorage) NewBytesMap(mapName string) *BytesMap
- func (sto *LocalStorage) NewGeneralMap(mapName string, leftToBytesHelperFunc func(interface{}) []byte, ...) *GeneralMap
- func (sto *LocalStorage) NewInt64Map(mapName string) *Int64Map
- func (sto *LocalStorage) NewJsonBytesMap(mapName string) *JsonBytesMap
- func (sto *LocalStorage) NewMap(mapName string) *Map
- func (sto *LocalStorage) NewStringMap(mapName string) *StringMap
- func (sto *LocalStorage) NewUint64Map(mapName string) *Uint64Map
- func (sto *LocalStorage) SetAny(variName string, value Bytable)
- func (sto *LocalStorage) SetBool(variName string, value bool)
- func (sto *LocalStorage) SetBytes(variName string, value []byte)
- func (sto *LocalStorage) SetInt64(variName string, value int64)
- func (sto *LocalStorage) SetInt8(variName string, value int8)
- func (sto *LocalStorage) SetString(variName string, value string)
- func (sto *LocalStorage) SetUint256(variName string, value *math.Uint256)
- func (sto *LocalStorage) SetUint64(variName string, value uint64)
- func (sto *LocalStorage) SetUint8(variName string, value uint8)
- type Map
- type StringMap
- type ToBytesHelper
- type Uint64Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesArray ¶
type BytesArray struct {
// contains filtered or unexported fields
}
func (*BytesArray) Append ¶
func (barr *BytesArray) Append(value []byte)
func (*BytesArray) Delete ¶
func (barr *BytesArray) Delete(arr_offset uint64)
func (*BytesArray) Get ¶
func (barr *BytesArray) Get(arr_offset uint64) []byte
func (*BytesArray) Length ¶
func (barr *BytesArray) Length() uint64
func (*BytesArray) Set ¶
func (barr *BytesArray) Set(arr_offset uint64, value []byte)
type CommitEvent ¶
type CommitEvent func()
type FromBytesHelper ¶
type FromBytesHelper func([]byte) interface{}
type GeneralMap ¶
type GeneralMap struct {
// contains filtered or unexported fields
}
func (*GeneralMap) Delete ¶
func (udMap *GeneralMap) Delete(Map_offset interface{})
func (*GeneralMap) Get ¶
func (udMap *GeneralMap) Get(Map_offset interface{}) interface{}
func (*GeneralMap) Set ¶
func (udMap *GeneralMap) Set(Map_offset interface{}, value interface{})
type JsonBytesMap ¶
type JsonBytesMap struct {
// contains filtered or unexported fields
}
func (*JsonBytesMap) Delete ¶
func (jsonBytesMap *JsonBytesMap) Delete(Map_offset []byte)
func (*JsonBytesMap) Get ¶
func (jsonBytesMap *JsonBytesMap) Get(Map_offset []byte, value interface{})
func (*JsonBytesMap) Set ¶
func (jsonBytesMap *JsonBytesMap) Set(Map_offset []byte, value interface{})
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func NewLocalStorage ¶
func NewLocalStorage(accountAddress []byte, storageRoot interface{}, db *leveldb.DB) (*LocalStorage, error)
func (*LocalStorage) Commit ¶
func (sto *LocalStorage) Commit() (root []byte, err error)
func (*LocalStorage) GetBool ¶
func (sto *LocalStorage) GetBool(variName string) bool
func (*LocalStorage) GetBytes ¶
func (sto *LocalStorage) GetBytes(variName string) []byte
func (*LocalStorage) GetInt64 ¶
func (sto *LocalStorage) GetInt64(variName string) int64
func (*LocalStorage) GetInt8 ¶
func (sto *LocalStorage) GetInt8(variName string) int8
func (*LocalStorage) GetString ¶
func (sto *LocalStorage) GetString(variName string) string
func (*LocalStorage) GetUint256 ¶
func (sto *LocalStorage) GetUint256(variName string) *math.Uint256
func (*LocalStorage) GetUint64 ¶
func (sto *LocalStorage) GetUint64(variName string) uint64
func (*LocalStorage) GetUint8 ¶
func (sto *LocalStorage) GetUint8(variName string) uint8
func (*LocalStorage) NewBoolMap ¶
func (sto *LocalStorage) NewBoolMap(mapName string) *BoolMap
func (*LocalStorage) NewBytesArray ¶
func (sto *LocalStorage) NewBytesArray(arrName string) *BytesArray
func (*LocalStorage) NewBytesMap ¶
func (sto *LocalStorage) NewBytesMap(mapName string) *BytesMap
func (*LocalStorage) NewGeneralMap ¶
func (sto *LocalStorage) NewGeneralMap( mapName string, leftToBytesHelperFunc func(interface{}) []byte, rightToBytesHelperFunc func(interface{}) []byte, rightFromBytesHelperFunc func([]byte) interface{}, ) *GeneralMap
func (*LocalStorage) NewInt64Map ¶
func (sto *LocalStorage) NewInt64Map(mapName string) *Int64Map
func (*LocalStorage) NewJsonBytesMap ¶
func (sto *LocalStorage) NewJsonBytesMap(mapName string) *JsonBytesMap
func (*LocalStorage) NewMap ¶
func (sto *LocalStorage) NewMap(mapName string) *Map
func (*LocalStorage) NewStringMap ¶
func (sto *LocalStorage) NewStringMap(mapName string) *StringMap
func (*LocalStorage) NewUint64Map ¶
func (sto *LocalStorage) NewUint64Map(mapName string) *Uint64Map
func (*LocalStorage) SetAny ¶
func (sto *LocalStorage) SetAny(variName string, value Bytable)
func (*LocalStorage) SetBool ¶
func (sto *LocalStorage) SetBool(variName string, value bool)
func (*LocalStorage) SetBytes ¶
func (sto *LocalStorage) SetBytes(variName string, value []byte)
func (*LocalStorage) SetInt64 ¶
func (sto *LocalStorage) SetInt64(variName string, value int64)
func (*LocalStorage) SetInt8 ¶
func (sto *LocalStorage) SetInt8(variName string, value int8)
func (*LocalStorage) SetString ¶
func (sto *LocalStorage) SetString(variName string, value string)
func (*LocalStorage) SetUint256 ¶
func (sto *LocalStorage) SetUint256(variName string, value *math.Uint256)
func (*LocalStorage) SetUint64 ¶
func (sto *LocalStorage) SetUint64(variName string, value uint64)
func (*LocalStorage) SetUint8 ¶
func (sto *LocalStorage) SetUint8(variName string, value uint8)
type ToBytesHelper ¶
type ToBytesHelper func(interface{}) []byte
Click to show internal directories.
Click to hide internal directories.