mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-30 14:56:15 +00:00
14 lines
288 B
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
|
|
}
|