Documentation ¶
Index ¶
- func ClientConfigMA() (ma.Multiaddr, string)
- func CreateLocalDevnet(t *testing.T, numMiners int) (*ldevnet.LocalDevnet, address.Address, []address.Address, func())
- func GetLotusToken(lotusFolderPath string) (string, error)
- func NewSimpleTx(ds datastore.Datastore) datastore.Txn
- type SimpleTx
- func (bt *SimpleTx) Commit() error
- func (bt *SimpleTx) Delete(key datastore.Key) error
- func (bt *SimpleTx) Discard()
- func (bt *SimpleTx) Get(k datastore.Key) ([]byte, error)
- func (bt *SimpleTx) GetSize(k datastore.Key) (int, error)
- func (bt *SimpleTx) Has(k datastore.Key) (bool, error)
- func (bt *SimpleTx) Put(key datastore.Key, val []byte) error
- func (bt *SimpleTx) Query(q query.Query) (query.Results, error)
- type TxMapDatastore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientConfigMA ¶
func CreateLocalDevnet ¶
func CreateLocalDevnet(t *testing.T, numMiners int) (*ldevnet.LocalDevnet, address.Address, []address.Address, func())
func GetLotusToken ¶
func NewSimpleTx ¶
func NewSimpleTx(ds datastore.Datastore) datastore.Txn
Types ¶
type SimpleTx ¶
type SimpleTx struct {
// contains filtered or unexported fields
}
SimpleTx implements the transaction interface for datastores who do not have any sort of underlying transactional support
type TxMapDatastore ¶
type TxMapDatastore struct { *datastore.MapDatastore // contains filtered or unexported fields }
TxMapDatastore is a in-memory datastore that satisfies TxnDatastore
func NewTxMapDatastore ¶
func NewTxMapDatastore() *TxMapDatastore
func (*TxMapDatastore) NewTransaction ¶
func (d *TxMapDatastore) NewTransaction(readOnly bool) (datastore.Txn, error)
Click to show internal directories.
Click to hide internal directories.