Set sets (overrides) the metadata in addr. When a SubConn is created with this address, the RPCs sent on it will all have this metadata.
(addr resolver.Address, md metadata.MD)
| 72 | // When a SubConn is created with this address, the RPCs sent on it will all |
| 73 | // have this metadata. |
| 74 | func Set(addr resolver.Address, md metadata.MD) resolver.Address { |
| 75 | addr.Attributes = addr.Attributes.WithValue(mdKey, mdValue(md)) |
| 76 | return addr |
| 77 | } |
| 78 | |
| 79 | // Validate validates every pair in md with ValidatePair. |
| 80 | func Validate(md metadata.MD) error { |