(host string)
| 98 | } |
| 99 | |
| 100 | func CategorizeHost(host string) string { |
| 101 | if host == defaultHostname { |
| 102 | return "github.com" |
| 103 | } |
| 104 | |
| 105 | if ghauth.IsEnterprise(host) { |
| 106 | return "ghes" |
| 107 | } |
| 108 | |
| 109 | if ghauth.IsTenancy(host) { |
| 110 | return "tenancy" |
| 111 | } |
| 112 | |
| 113 | return "uncategorized" |
| 114 | } |
no outgoing calls