Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
REST *github.Client
// GraphQLURL is the endpoint used by DoGraphQL. Empty means GitHub's public
// GraphQL API. Tests may override it to point at a local server.
GraphQLURL string
// contains filtered or unexported fields
}
func NewClientFromEnv ¶
func NewClientWithHTTP ¶ added in v0.4.2
NewClientWithHTTP builds a Client around an HTTP client the caller already has.
DoGraphQL needs that client and the field is unexported, so without this there is no way to construct a GraphQL-capable Client outside this package — which left the GraphQL paths untestable.
Click to show internal directories.
Click to hide internal directories.