grpc: Index | Files

package grpcutil

import ""

Package grpcutil provides a bunch of utility functions to be used across the gRPC codebase.


Package Files

method.go target.go

func ParseMethod Uses

func ParseMethod(methodName string) (service, method string, _ error)

ParseMethod splits service and method from the input. It expects format "/service/method".

func ParseTarget Uses

func ParseTarget(target string) (ret resolver.Target)

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}.

Package grpcutil imports 3 packages (graph) and is imported by 3 packages. Updated 2020-04-20. Refresh now. Tools for package owners.