Categorygithub.com/jadekler/gax-go
modulepackage
2.0.0+incompatible
Repository: https://github.com/jadekler/gax-go.git
Documentation: pkg.go.dev

# README

Google API Extensions for Go

Build Status Code Coverage

Google API Extensions for Go (gax-go) is a set of modules which aids the development of APIs for clients and servers based on gRPC and Google API conventions.

Application code will rarely need to use this library directly, but the code generated automatically from API definition files can use it to simplify code generation and to provide more convenient and idiomatic API surface.

This project is currently experimental and not supported.

Go Versions

This library requires Go 1.6 or above.

License

BSD - please see LICENSE for more information.

# Functions

Invoke calls the given APICall, performing retries as specified by opts, if any.
OnCodes returns a Retryer that retries if and only if the previous attempt returns a GRPC error whose error code is stored in cc.
Sleep is similar to time.Sleep, but it can be interrupted by ctx.Done() closing.
No description provided by the author
WithRetry sets CallSettings.Retry to fn.
XGoogHeader is for use by the Google Cloud Libraries only.

# Constants

No description provided by the author

# Structs

Backoff implements exponential backoff.
No description provided by the author

# Interfaces

CallOption is an option used by Invoke to control behaviors of RPC calls.
Retryer is used by Invoke to determine retry behavior.

# Type aliases

A user defined call stub.