ParseInstanceKey will parse an InstanceKey from a string representation such as 127.0.0.1:3306. The port part is optional; there will be no name resolve
(hostPort string)
| 63 | // ParseInstanceKey will parse an InstanceKey from a string representation such as 127.0.0.1:3306. |
| 64 | // The port part is optional; there will be no name resolve |
| 65 | func ParseInstanceKey(hostPort string) (*InstanceKey, error) { |
| 66 | return NewRawInstanceKey(hostPort) |
| 67 | } |
| 68 | |
| 69 | // Equals tests equality between this key and another key |
| 70 | func (ik *InstanceKey) Equals(other *InstanceKey) bool { |
searching dependent graphs…