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.