package grpcutil
import "google.golang.org/grpc/internal/grpcutil"
Package grpcutil provides a bunch of utility functions to be used across the gRPC codebase.
Index ¶
- func ParseMethod(methodName string) (service, method string, _ error)
- func ParseTarget(target string) (ret resolver.Target)
Functions ¶
func ParseMethod ¶
ParseMethod splits service and method from the input. It expects format "/service/method".
func ParseTarget ¶
ParseTarget splits target into a resolver.Target struct containing scheme, authority and endpoint.
If target is not a valid scheme://authority/endpoint, it returns {Endpoint: target}.
Source Files ¶
method.go target.go
- Version
- v1.31.0-dev
- Published
- Jun 11, 2020
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 15 minutes ago –
Tools for package owners.