refactoring to typed Size
Go is amazing with refactoring!
This commit is contained in:
@@ -5,8 +5,8 @@ import (
|
||||
)
|
||||
|
||||
type NeedleValueMap interface {
|
||||
Set(key NeedleId, offset Offset, size uint32) (oldOffset Offset, oldSize uint32)
|
||||
Delete(key NeedleId) uint32
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user