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

Method Value

attributes/attributes.go:75–82  ·  view source on GitHub ↗

Value returns the value associated with these attributes for key, or nil if no value is associated with key. The returned value should not be modified.

(key any)

Source from the content-addressed store, hash-verified

73// Value returns the value associated with these attributes for key, or nil if
74// no value is associated with key. The returned value should not be modified.
75func (a *Attributes) Value(key any) any {
76 for cur := a; cur != nil; cur = cur.parent {
77 if cur.key == key {
78 return cur.value
79 }
80 }
81 return nil
82}
83
84// Equal returns whether a and o are equivalent. If 'Equal(o any) bool' is
85// implemented for a value in the attributes, it is called to determine if the

Callers 15

serverFromContextFunction · 0.45
rpcInfoFromContextFunction · 0.45
securityLevelLockedMethod · 0.45
getListenerInfoFunction · 0.45
FromContextFunction · 0.45
getConfigKeyFunction · 0.45
GetFunction · 0.45
UpdateClientConnStateMethod · 0.45

Calls

no outgoing calls