profile

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCPAPICallCount int
View Source
var GCPMutex sync.Mutex

Functions

func GetCallCount

func GetCallCount() int

GetCallCount returns the current count of API calls.

func NewCountingClient

func NewCountingClient() *http.Client

NewCountingClient returns an *http.Client that counts each request.

func NewOauth2Transport

func NewOauth2Transport(base http.RoundTripper, token oauth2.TokenSource) *oauth2Transport

NewOauth2Transport creates a new oauth2Transport with the given base transport and token source.

func ResetCallCount

func ResetCallCount()

ResetCallCount resets the API call count.

Types

This section is empty.

Jump to

Keyboard shortcuts

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