MCPcopy Index your code
hub / github.com/koding/kite / getKontrolPath

Method getKontrolPath

heartbeat.go:118–125  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

116}
117
118func (k *Kite) getKontrolPath(path string) string {
119 heartbeatURL := k.Config.KontrolURL + "/" + path
120 if strings.HasSuffix(k.Config.KontrolURL, "/kite") {
121 heartbeatURL = strings.TrimSuffix(k.Config.KontrolURL, "/kite") + "/" + path
122 }
123
124 return heartbeatURL
125}
126
127// RegisterHTTP registers current Kite to Kontrol. After registration other Kites
128// can find it via GetKites() or WatchKites() method. It registers again if

Callers 2

RegisterHTTPMethod · 0.95
sendHeartbeatsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected