Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// MaxRetry defines the maximum number of retries when rate limit is exceeded
MaxRetry = 3
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Query(ctx context.Context, q interface{}, variables map[string]interface{}) error
Mutate(ctx context.Context, m interface{}, input githubv4.Input, variables map[string]interface{}) error
}
Client must be implemented by any GitHub query client (v4 API)
type ClientConfig ¶ added in v0.110.0
type ClientConfig struct {
Username string
Client Client
TokenSource oauth2.TokenSource
URL string
}
ClientConfig defines the configuration required to create a GitHub client instance.
Click to show internal directories.
Click to hide internal directories.