mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +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>
20 lines
354 B
Go
20 lines
354 B
Go
package grpcclient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/pkg/v2/util"
|
|
)
|
|
|
|
type Token struct {
|
|
Value string
|
|
}
|
|
|
|
func (t *Token) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {
|
|
return map[string]string{util.HeaderSourceID: t.Value}, nil
|
|
}
|
|
|
|
func (t *Token) RequireTransportSecurity() bool {
|
|
return false
|
|
}
|