registryv1alpha1apiclientgrpc

package
v0.43.3-0...-9926edd Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(
	logger *zap.Logger,
	clientConnProvider grpcclient.ClientConnProvider,
	options ...ProviderOption,
) registryv1alpha1apiclient.Provider

NewProvider returns a new Provider.

Types

type ProviderOption

type ProviderOption func(*provider)

ProviderOption is an option for a new Provider.

func WithAddressMapper

func WithAddressMapper(addressMapper func(string) string) ProviderOption

WithAddressMapper maps the address with the given function.

func WithContextModifierProvider

func WithContextModifierProvider(contextModifierProvider func(address string) (func(context.Context) context.Context, error)) ProviderOption

WithContextModifierProvider provides a function that modifies the context before every RPC invocation. Applied before the address mapper.

Jump to

Keyboard shortcuts

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