MCPcopy
hub / github.com/github/gh-ost / ParseInstanceKey

Function ParseInstanceKey

go/mysql/instance_key.go:65–67  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
65func ParseInstanceKey(hostPort string) (*InstanceKey, error) {
66 return NewRawInstanceKey(hostPort)
67}
68
69// Equals tests equality between this key and another key
70func (ik *InstanceKey) Equals(other *InstanceKey) bool {

Callers 3

initiateInspectorMethod · 0.92
TestParseInstanceKeyFunction · 0.85

Calls 1

NewRawInstanceKeyFunction · 0.85

Tested by 1

TestParseInstanceKeyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…