milvus/internal/dataservice/allocator.go
sunby 76a7684d96 Add data service
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-01-19 12:10:49 +08:00

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
}