clientv3: add DialOptions to config

Removes strict prometheus dependency.

Fixes #7058
This commit is contained in:
Anthony Romano
2017-02-03 11:05:59 -08:00
parent 4203c766fb
commit 8c43bd06a0
4 changed files with 66 additions and 18 deletions

View File

@ -17,6 +17,8 @@ package clientv3
import (
"crypto/tls"
"time"
"google.golang.org/grpc"
)
type Config struct {
@ -38,4 +40,7 @@ type Config struct {
// Password is a password for authentication.
Password string `json:"password"`
// DialOptions is a list of dial options for the grpc client (e.g., for interceptors).
DialOptions []grpc.DialOption
}