client

package
v0.0.0-...-23e6e85 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteGRPCCall

func ExecuteGRPCCall(call func() (interface{}, error)) (interface{}, error)

ExecuteGRPCCall executes a grpc call

func GetConnection

func GetConnection(address string) (*grpc.ClientConn, error)

GetConnection creates and returns a grpc client connection

Types

type RetryPolicy

type RetryPolicy struct {
	// Maximum number of time a failed grpc call will be retried. Set negative value to try indefinitely.
	MaxAttempts int
	// Time delay between retries. (In milli seconds)
	BackOffInMilliSeconds int
}

RetryPolicy holds configuration for grpc connection retries

Jump to

Keyboard shortcuts

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