mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-31 16:05:30 +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
478 B
Go
23 lines
478 B
Go
package broadcast
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/pkg/v2/streaming/util/message"
|
|
)
|
|
|
|
type WatcherBuilder interface {
|
|
Build(ctx context.Context) (Watcher, error)
|
|
}
|
|
|
|
type Watcher interface {
|
|
// ObserveResourceKeyEvent observes the resource key event.
|
|
ObserveResourceKeyEvent(ctx context.Context, ev *message.BroadcastEvent) error
|
|
|
|
// EventChan returns the event channel.
|
|
EventChan() <-chan *message.BroadcastEvent
|
|
|
|
// Close closes the watcher.
|
|
Close()
|
|
}
|