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

Function Get

balancer/grpclb/state/state.go:48–51  ·  view source on GitHub ↗

Get returns the grpclb State in the resolver.State, or nil if not present. The returned data should not be mutated.

(state resolver.State)

Source from the content-addressed store, hash-verified

46// Get returns the grpclb State in the resolver.State, or nil if not present.
47// The returned data should not be mutated.
48func Get(state resolver.State) *State {
49 s, _ := state.Attributes.Value(key).(*State)
50 return s
51}

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected