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