func Set(state resolver.State, s *State) resolver.State
Set returns a copy of the provided state with attributes containing s. s's data should not be mutated after calling Set.
State contains gRPCLB-relevant data passed from the name resolver.
type State struct { // BalancerAddresses contains the remote load balancer address(es). If // set, overrides any resolver-provided addresses with Type of GRPCLB. BalancerAddresses []resolver.Address }
func Get(state resolver.State) *State
Get returns the grpclb State in the resolver.State, or nil if not present. The returned data should not be mutated.