retry

package
v1.2.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 8 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