client

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("file not found")

Functions

func GithubClient

func GithubClient(ctx context.Context, token *oauth2.Token, client *http.Client) (*githubClient, error)

GithubClient returns a github client.

func InstrumentedHTTPClient

func InstrumentedHTTPClient(logger log.Logger, reg prometheus.Registerer) *http.Client

Types

type File

type File struct {
	Content string
	URL     string
}

type FileRequest

type FileRequest struct {
	Owner string
	Repo  string
	Path  string
	Ref   string
}

Jump to

Keyboard shortcuts

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