(path string)
| 116 | } |
| 117 | |
| 118 | func (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 |
no outgoing calls
no test coverage detected