mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +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>
27 lines
595 B
Go
27 lines
595 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package resource
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/streamingnode/client/manager"
|
|
"github.com/milvus-io/milvus/pkg/v2/log"
|
|
)
|
|
|
|
// OptStreamingManagerClient provides streaming manager client to the resource.
|
|
func OptStreamingManagerClient(c manager.ManagerClient) optResourceInit {
|
|
return func(r *resourceImpl) {
|
|
r.streamingNodeManagerClient = c
|
|
}
|
|
}
|
|
|
|
// InitForTest initializes the singleton of resources for test.
|
|
func InitForTest(opts ...optResourceInit) {
|
|
r = &resourceImpl{
|
|
logger: log.With(),
|
|
}
|
|
for _, opt := range opts {
|
|
opt(r)
|
|
}
|
|
}
|