mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
24 lines
455 B
Go
24 lines
455 B
Go
package dataservice
|
|
|
|
type allocator interface {
|
|
allocTimestamp() (Timestamp, error)
|
|
allocID() (UniqueID, error)
|
|
}
|
|
|
|
type allocatorImpl struct {
|
|
// TODO call allocate functions in client.go in master service
|
|
}
|
|
|
|
// TODO implements
|
|
func newAllocatorImpl() *allocatorImpl {
|
|
return nil
|
|
}
|
|
|
|
func (allocator *allocatorImpl) allocTimestamp() (Timestamp, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (allocator *allocatorImpl) allocID() (UniqueID, error) {
|
|
return 0, nil
|
|
}
|