mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: yah01 <yang.cen@zilliz.com> Co-authored-by: Wei Liu <wei.liu@zilliz.com> Co-authored-by: Congqi Xia <congqi.xia@zilliz.com> Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: yah01 <yang.cen@zilliz.com> Co-authored-by: Wei Liu <wei.liu@zilliz.com> Co-authored-by: Congqi Xia <congqi.xia@zilliz.com>
27 lines
386 B
Go
27 lines
386 B
Go
package checkers
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/internal/querycoordv2/task"
|
|
)
|
|
|
|
type Checker interface {
|
|
ID() int64
|
|
SetID(id int64)
|
|
Description() string
|
|
Check(ctx context.Context) []task.Task
|
|
}
|
|
|
|
type baseChecker struct {
|
|
id int64
|
|
}
|
|
|
|
func (checker *baseChecker) ID() int64 {
|
|
return checker.id
|
|
}
|
|
|
|
func (checker *baseChecker) SetID(id int64) {
|
|
checker.id = id
|
|
}
|