ghinstance

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() string

Default returns the host name of the default GitHub instance

func GistPrefix

func GistPrefix(hostname string) string

func GraphQLEndpoint

func GraphQLEndpoint(hostname string) string

func HostnameValidator

func HostnameValidator(v interface{}) error

func IsEnterprise

func IsEnterprise(h string) bool

IsEnterprise reports whether a non-normalized host name looks like a GHE instance

func NormalizeHostname

func NormalizeHostname(h string) string

NormalizeHostname returns the canonical host name of a GitHub instance

func RESTPrefix

func RESTPrefix(hostname string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL