(addr resolver.Address, config string)
| 121 | type configKey struct{} |
| 122 | |
| 123 | func setConfigKey(addr resolver.Address, config string) resolver.Address { |
| 124 | addr.Attributes = addr.Attributes.WithValue(configKey{}, config) |
| 125 | return addr |
| 126 | } |
| 127 | |
| 128 | func getConfigKey(attr *attributes.Attributes) (string, bool) { |
| 129 | v := attr.Value(configKey{}) |
no test coverage detected