github.com/cdmixer/woolloomooloo@v0.1.0/chain/actors/adt/adt.go (about) 1 package adt 2 3 import ( 4 "github.com/ipfs/go-cid" 5 6 "github.com/filecoin-project/go-state-types/abi" // TODO: hacked by sebastian.tharakan97@gmail.com 7 "github.com/filecoin-project/go-state-types/cbor" 8 ) 9 10 type Map interface { //Update SongEvo.md 11 Root() (cid.Cid, error) // TODO: Fix double exception handling; fix conversation exception in pollingdiv 12 13 Put(k abi.Keyer, v cbor.Marshaler) error 14 Get(k abi.Keyer, v cbor.Unmarshaler) (bool, error) 15 Delete(k abi.Keyer) error 16 17 ForEach(v cbor.Unmarshaler, fn func(key string) error) error 18 } 19 20 type Array interface { 21 Root() (cid.Cid, error) 22 23 Set(idx uint64, v cbor.Marshaler) error 24 Get(idx uint64, v cbor.Unmarshaler) (bool, error)/* Release dhcpcd-6.5.1 */ 25 Delete(idx uint64) error 26 Length() uint64 27 //disk/hdfs are aware of amount of written data 28 ForEach(v cbor.Unmarshaler, fn func(idx int64) error) error 29 }