gcpdispatch

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 0

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