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

Functions

func ParseMethod

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

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

func ParseTarget

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

Source Files

method.go target.go

Version
v1.30.0
Published
Jun 22, 2020
Platform
windows/amd64
Imports
3 packages
Last checked
48 minutes ago

Tools for package owners.