(host string)
| 107 | } |
| 108 | |
| 109 | func CategorizeHost(host string) string { |
| 110 | if host == defaultHostname { |
| 111 | return "github.com" |
| 112 | } |
| 113 | |
| 114 | if ghauth.IsEnterprise(host) { |
| 115 | return "ghes" |
| 116 | } |
| 117 | |
| 118 | if ghauth.IsTenancy(host) { |
| 119 | return "tenancy" |
| 120 | } |
| 121 | |
| 122 | return "uncategorized" |
| 123 | } |
no outgoing calls