Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTxnPutEndID = coderr.NewCodeError(coderr.Internal, "put end id in txn") ErrAllocID = coderr.NewCodeError(coderr.Internal, "alloc id") )
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator interface { // Alloc allocs a unique id. Alloc(ctx context.Context) (uint64, error) }
Allocator defines the id allocator on the ceresdb cluster meta info.
type AllocatorImpl ¶
type AllocatorImpl struct {
// contains filtered or unexported fields
}
func NewAllocatorImpl ¶
func NewAllocatorImpl(kv clientv3.KV, key string, allocStep uint) *AllocatorImpl
Click to show internal directories.
Click to hide internal directories.