mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-19 21:47:50 +08:00
d4d7ced922
later the type size can possibly be adjusted
13 lines
312 B
Go
13 lines
312 B
Go
package needle
|
|
|
|
import (
|
|
. "github.com/chrislusf/seaweedfs/weed/storage/types"
|
|
)
|
|
|
|
type NeedleValueMap interface {
|
|
Set(key NeedleId, offset Offset, size uint32) (oldOffset Offset, oldSize uint32)
|
|
Delete(key NeedleId) uint32
|
|
Get(key NeedleId) (*NeedleValue, bool)
|
|
Visit(visit func(NeedleValue) error) error
|
|
}
|