pipedservice

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRetry

func NewRetry(maxRetries int) backoff.Retry

NewRetry returns a new backoff.Retry for piped API caller. 0s 997.867435ms 2.015381172s 3.485134345s 4.389600179s 18.118099328s 48.73058264s

func Retriable

func Retriable(err error) bool

Retriable checks whether the caller should retry the api call for the given error.

Types

type Client

type Client interface {
	PipedServiceClient
	Close() error
}

func NewClient

func NewClient(ctx context.Context, addr string, opts ...rpcclient.DialOption) (Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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