gitiles

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

GetClient returns gitilesClient from context. If not set, it panics.

func NewRetriableClient

NewRetriableClient creates Gitiles client that automatically retries with exponential backoff if error was insufficient quota.

func NewThrottlingClient

func NewThrottlingClient(host string, limiter *rate.Limiter) (gitilesProto.GitilesClient, error)

NewThrottlingClient creates REST Gitiles client and consumes limiter quota on each API call to Gitiles. If there is no quota left, it blocks until there is.

func SetClient

SetClient stores gitilesClient in context. Useful for unit testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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