gcpdispatch

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gcpdispatch holds helpers shared by the GCP emulators that deliver scheduled HTTP requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backoff

func Backoff(lo, hi time.Duration, doublings, failures int32) time.Duration

Backoff is the delay after the failures-th failed attempt: lo doubles doublings times, then grows linearly, capped at hi.

func HTTPToRPC

func HTTPToRPC(sc int) code.Code

HTTPToRPC maps an HTTP status code to the closest google.rpc.Code.

func OAuthToken

func OAuthToken(email, scope string) string

OAuthToken returns an opaque placeholder access token tied to the service account and scope.

func OIDCToken

func OIDCToken(email, audience, targetURL string, now time.Time) string

OIDCToken mints an UNSIGNED JWT (alg none) marked as a gopherstack test token; no verifier will accept it as real.

Types

This section is empty.

Jump to

Keyboard shortcuts

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