package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DefaultAccessorFactory is the default strategy for creating Accessors based on a set of instances.
No description provided by the author
No description provided by the author
EmptyAccessor returns an Accessor that always returns an error from Get.
FormatInstance creates an instance string from a (scheme, address, port) tuple.
No description provided by the author
Metrics is the service discovery module function for metrics.
NewAccessorEndpoint produces a go-kit Endpoint which delegates to an Accessor.
NewConsistentAccessorFactory produces a factory which uses consistent hashing of server nodes.
NewConsistentAccessorFactoryWithGate produces a factory which uses consistent hashing of server nodes with the gate feature.
NewContextualInstancer returns an sd.Instancer that has been enriched with metadata.
NewEnvironment constructs a new service discovery client environment.
No description provided by the author
NopCloser is a closer function that does nothing.
NormalizeInstance canonicalizes an instance string from a service discovery backend, using an optional defaultScheme to be used if no scheme is found in the instance string.
WithAccessorFactory configures the creation strategy for Accessor objects.
WithCloser configures the function used to completely shut down the service discover backend.
WithDefaultScheme configures the default URI scheme for discovered instances that do not specify a scheme.
WithInstancers configures the set of sd.Instancer objects for use in the environment.
WithProvider configures the metrics provider for the environment.
WithRegistrars configures the mapping of sd.Registrar objects to use for service advertisement.

# Constants

DefaultScheme is the default URI scheme assumed by this service discovery infrastructure.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrIncomplete is returned by platform-specific code that creates environments whenever the configuration is incomplete: it contains connection information but no watches or registrations.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
MockAccessor is a mocked Accessor.
MockEnvironment is a stretchr/testify mocked Environment.
MockInstancer is a stretchr/testify mocked sd.Instancer.
MockRegistrar is a stretchr/testify mocked sd.Registrar.
No description provided by the author
UpdatableAccessor is an Accessor whose contents can be mutated safely under concurrency.

# Interfaces

Accessor holds a hash of server nodes.
No description provided by the author
Environment represents everything known about a service discovery backend.
Key represents a service key.
No description provided by the author
No description provided by the author

# Type aliases

AccessorFactory defines the behavior of functions which can take a set of nodes and turn them into an Accessor.
AccessorFunc is a function type that implements Accessor.
Instancers is a collection of sd.Instancer objects, keyed by arbitrary strings.
KeyParser is a parsing strategy that takes an arbitrary string and produces a service Key.
MapAccessor is a static Accessor that honors a set of known keys.
Option represents a service discovery option for configuring an Environment.
Registrars is a aggregate sd.Registrar that allows allows composite registration and deregistration.
StringKey is a simple string that implements Key.