mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 06:55:27 +08:00
Related to #39095 https://go.dev/doc/modules/version-numbers Update pkg version according to golang dep version convention --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
23 lines
535 B
Go
23 lines
535 B
Go
package assignment
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/pkg/v2/streaming/util/types"
|
|
)
|
|
|
|
var _ Watcher = (*watcherImpl)(nil)
|
|
|
|
// Watcher is the interface for the channel assignment.
|
|
type Watcher interface {
|
|
// Get gets the channel assignment.
|
|
Get(ctx context.Context, channel string) *types.PChannelInfoAssigned
|
|
|
|
// Watch watches the channel assignment.
|
|
// Block until new term is coming.
|
|
Watch(ctx context.Context, channel string, previous *types.PChannelInfoAssigned) error
|
|
|
|
// Close stop the watcher.
|
|
Close()
|
|
}
|