mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 13:52:01 +08: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
|
|
}
|