signoz/pkg/sharder/sharder.go

14 lines
288 B
Go

package sharder
import (
"context"
)
type Sharder interface {
// Returns the keys owned by the current instance.
GetMyOwnedKeyRange(context.Context) (uint32, uint32, error)
// Returns true if the key is owned by the current instance.
IsMyOwnedKey(context.Context, uint32) error
}