mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-30 23:29:02 +08:00
6a92f0bc7a
Go is amazing with refactoring!
13 lines
319 B
Go
13 lines
319 B
Go
package needle_map
|
|
|
|
import (
|
|
. "github.com/chrislusf/seaweedfs/weed/storage/types"
|
|
)
|
|
|
|
type NeedleValueMap interface {
|
|
Set(key NeedleId, offset Offset, size Size) (oldOffset Offset, oldSize Size)
|
|
Delete(key NeedleId) Size
|
|
Get(key NeedleId) (*NeedleValue, bool)
|
|
AscendingVisit(visit func(NeedleValue) error) error
|
|
}
|