mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-21 15:28:14 +08:00
13 lines
319 B
Go
13 lines
319 B
Go
package needle_map
|
|
|
|
import (
|
|
. "github.com/seaweedfs/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
|
|
}
|