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