retry

package
v1.14.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package retry provides a chain element allowing to retry registration/search/de-registration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkServiceEndpointRegistryClient

func NewNetworkServiceEndpointRegistryClient(ctx context.Context, opts ...Option) registry.NetworkServiceEndpointRegistryClient

NewNetworkServiceEndpointRegistryClient - returns a retry chain element

func NewNetworkServiceRegistryClient

func NewNetworkServiceRegistryClient(ctx context.Context, opts ...Option) registry.NetworkServiceRegistryClient

NewNetworkServiceRegistryClient - returns a retry chain element

Types

type Option

type Option func(*options)

Option is NS/NSE retry client config option

func WithInterval

func WithInterval(interval time.Duration) Option

WithInterval sets delay interval before next try

func WithTryTimeout

func WithTryTimeout(tryTimeout time.Duration) Option

WithTryTimeout sets timeout for the register/unregister/find operations

Jump to

Keyboard shortcuts

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