Esempio n. 1
0
func (w withBaseHTTP) Resolve(o *opts.DialOpt) {
	o.HTTPClient = w.client
}
Esempio n. 2
0
func (w withBaseGRPC) Resolve(o *opts.DialOpt) {
	o.GRPCClient = w.client
}
Esempio n. 3
0
func (w withUA) Resolve(o *opts.DialOpt) { o.UserAgent = string(w) }
Esempio n. 4
0
func (w withScopes) Resolve(o *opts.DialOpt) {
	s := make([]string, len(w))
	copy(s, w)
	o.Scopes = s
}
Esempio n. 5
0
func (w withEndpoint) Resolve(o *opts.DialOpt) {
	o.Endpoint = string(w)
}
Esempio n. 6
0
func (w withTokenSource) Resolve(o *opts.DialOpt) {
	o.TokenSource = w.ts
}
Esempio n. 7
0
func (w withGRPCDialOption) Resolve(o *opts.DialOpt) {
	o.GRPCDialOpts = append(o.GRPCDialOpts, w.opt)
}