googlenowclient

package
v0.0.0-...-2992608 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CircuitBreakerConfigKey = "circuitbreaking-configurations"

CircuitBreakerConfigKey is key value for qps level to circuit breaker parameters mapping

Variables

This section is empty.

Functions

This section is empty.

Types

type CircuitBreakerConfig

type CircuitBreakerConfig struct {
	Parameters map[string]map[string]int
}

CircuitBreakerConfig is used for storing the circuit breaker parameters for each qps level

type Client

type Client interface {
	HTTPClient() *zanzibar.HTTPClient
	AddCredentials(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsIDlClientsGooglenowGooglenow.GoogleNowService_AddCredentials_Args,
		timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions,
	) (context.Context, map[string]string, error)
	CheckCredentials(
		ctx context.Context,
		reqHeaders map[string]string,
		timeoutAndRetryCfg *zanzibar.TimeoutAndRetryOptions,
	) (context.Context, map[string]string, error)
}

Client defines google-now client interface.

func NewClient

func NewClient(deps *module.Dependencies) Client

NewClient returns a new http client.

Directories

Path Synopsis
Package clientmock is a generated GoMock package.
Package clientmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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