MCPcopy
hub / github.com/grpc/grpc-go / Build

Method Build

internal/resolver/passthrough/passthrough.go:33–43  ·  view source on GitHub ↗
(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions)

Source from the content-addressed store, hash-verified

31type passthroughBuilder struct{}
32
33func (*passthroughBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) {
34 if target.Endpoint() == "" && opts.Dialer == nil {
35 return nil, errors.New("passthrough: received empty target in Build()")
36 }
37 r := &passthroughResolver{
38 target: target,
39 cc: cc,
40 }
41 r.start()
42 return r, nil
43}
44
45func (*passthroughBuilder) Scheme() string {
46 return scheme

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
EndpointMethod · 0.80

Tested by

no test coverage detected