roundtripper

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package roundtripper has implementations of http.RoundTripper useful to clients.RepoClient.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCensusTransport

func MakeCensusTransport(innerTransport http.RoundTripper) http.RoundTripper

MakeCensusTransport wraps input Roundtripper with monitoring logic.

func MakeRateLimitedTransport

func MakeRateLimitedTransport(innerTransport http.RoundTripper, logger *log.Logger) http.RoundTripper

MakeRateLimitedTransport returns a RoundTripper which rate limits GitHub requests.

func NewTransport

func NewTransport(ctx context.Context, logger *log.Logger) http.RoundTripper

NewTransport returns a configured http.Transport for use with GitHub.

Types

This section is empty.

Directories

Path Synopsis
Package tokens defines interface to access GitHub PATs.
Package tokens defines interface to access GitHub PATs.
server
Package main implements the GitHub token server.
Package main implements the GitHub token server.

Jump to

Keyboard shortcuts

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