interfaces

package
v0.1.47 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

interfaces defines contracts specific to the urlclient package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryStrategy

type RetryStrategy interface {
	// Retry defines the actual behavior of the RegistryClient and how it processes the URL.
	Retry(url *string) (string, error)

	// IsInitialized communicates whether the value of the URL is currently being updated or not.
	IsInitialized() bool

	// SetInitialization updates the value of the lock.
	SetInitialization(value bool)
}

RetryStrategy defines some way to verify that a RegistryClient has received data. It accomplishes this by monitoring the values pointed to in its parameters, which communicate the state of the RegistryClient. When the values pointed to by the parameters are in the desired state, the URL that should be passed back to the RegistryClient should be returned by the RetryStrategy.

Jump to

Keyboard shortcuts

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