(domain string, r *http.Request)
| 64 | } |
| 65 | |
| 66 | func getDomain(domain string, r *http.Request) string { |
| 67 | if scheme != string(domain[7]) { |
| 68 | domain = fmt.Sprintf("%s%s%s", scheme, domain, r.URL.Path) |
| 69 | config.Log.Debug("domian is %s", domain) |
| 70 | } else { |
| 71 | domain = fmt.Sprintf("%s%s", domain, r.URL.Path) |
| 72 | } |
| 73 | return domain |
| 74 | } |
| 75 | |
| 76 | func degradation(p string) { |
| 77 | config.Srv.Service.Delete(p) |