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

Function isFullMethodNameValid

balancer/rls/picker.go:77–79  ·  view source on GitHub ↗

isFullMethodNameValid return true if name is of the form `/service/method`.

(name string)

Source from the content-addressed store, hash-verified

75
76// isFullMethodNameValid return true if name is of the form `/service/method`.
77func isFullMethodNameValid(name string) bool {
78 return strings.HasPrefix(name, "/") && strings.Count(name, "/") == 2
79}
80
81// Pick makes the routing decision for every outbound RPC.
82func (p *rlsPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error) {

Callers 2

PickMethod · 0.85

Calls

no outgoing calls

Tested by 1