client

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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.

func New added in v0.110.0

func New(configUsername, configToken string, configApp *app.Spec, configURL string) (client *ClientConfig, err error)

New creates a new GitHub client instance based on the provided configuration.

Jump to

Keyboard shortcuts

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