mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
4e12271d79
Signed-off-by: kejiang <ke.jiang@zilliz.com> Co-authored-by: kejiang <ke.jiang@zilliz.com>
20 lines
356 B
Go
20 lines
356 B
Go
package grpcclient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/internal/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
|
|
}
|