Source File
passthrough.go
Belonging Package
google.golang.org/grpc/internal/resolver/passthrough
package passthrough
import
const scheme = "passthrough"
type passthroughBuilder struct{}
func (*passthroughBuilder) ( resolver.Target, resolver.ClientConn, resolver.BuildOptions) (resolver.Resolver, error) {
:= &passthroughResolver{
target: ,
cc: ,
}
.start()
return , nil
}
func (*passthroughBuilder) () string {
return scheme
}
type passthroughResolver struct {
target resolver.Target
cc resolver.ClientConn
}
func ( *passthroughResolver) () {
.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: .target.Endpoint}}})
}
func (*passthroughResolver) ( resolver.ResolveNowOptions) {}
func (*passthroughResolver) () {}
func () {
resolver.Register(&passthroughBuilder{})
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |