 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Default() string
- func GistPrefix(hostname string) string
- func GraphQLEndpoint(hostname string) string
- func HostnameValidator(v interface{}) error
- func IsEnterprise(h string) bool
- func NormalizeHostname(h string) string
- func OverridableDefault() string
- func OverrideDefault(newhost string)
- func RESTPrefix(hostname string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GistPrefix ¶ added in v1.0.0
func GraphQLEndpoint ¶
func HostnameValidator ¶ added in v1.2.0
func HostnameValidator(v interface{}) error
    func IsEnterprise ¶
IsEnterprise reports whether a non-normalized host name looks like a GHE instance
func NormalizeHostname ¶
NormalizeHostname returns the canonical host name of a GitHub instance
func OverridableDefault ¶
func OverridableDefault() string
OverridableDefault is like Default, except it is overridable by the GH_HOST environment variable
func OverrideDefault ¶
func OverrideDefault(newhost string)
OverrideDefault overrides the value returned from OverridableDefault. This should only ever be called from the main runtime path, not tests.
func RESTPrefix ¶
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.