Involved Source Files
Package state declares grpclb types to be set by resolvers wishing to pass
information to grpclb via resolver.State Attributes.
Package-Level Type Names (total 2, in which 1 are exported)
/* sort exporteds by: | */
State contains gRPCLB-relevant data passed from the name resolver.
BalancerAddresses contains the remote load balancer address(es). If
set, overrides any resolver-provided addresses with Type of GRPCLB.
func Get(state resolver.State) *State
func Set(state resolver.State, s *State) resolver.State
keyType is the key to use for storing State in Attributes.
const key
Package-Level Functions (total 2, both are exported)
Get returns the grpclb State in the resolver.State, or nil if not present.
The returned data should not be mutated.
Set returns a copy of the provided state with attributes containing s. s's
data should not be mutated after calling Set.
Package-Level Constants (only one, which is unexported)
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.