Documentation ¶
Overview ¶
Package client provides common functions for building NS, NSE registry clients
Package client provides a simple functions for building a NetworkServiceEndpointRegistryClient, NetworkServiceRegistryClient
Index ¶
- func NewNetworkServiceEndpointRegistryClient(ctx context.Context, opts ...Option) registry.NetworkServiceEndpointRegistryClient
- func NewNetworkServiceRegistryClient(ctx context.Context, opts ...Option) registry.NetworkServiceRegistryClient
- type Option
- func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registry.NetworkServiceEndpointRegistryClient) Option
- func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registry.NetworkServiceRegistryClient) Option
- func WithClientURL(u *url.URL) Option
- func WithDialOptions(dialOptions ...grpc.DialOption) Option
- func WithDialTimeout(dialTimeout time.Duration) Option
- func WithNSAdditionalFunctionality(additionalFunctionality ...registry.NetworkServiceRegistryClient) Option
- func WithNSClientURLResolver(c registry.NetworkServiceRegistryClient) Option
- func WithNSEAdditionalFunctionality(additionalFunctionality ...registry.NetworkServiceEndpointRegistryClient) Option
- func WithNSEClientURLResolver(c registry.NetworkServiceEndpointRegistryClient) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkServiceEndpointRegistryClient ¶
func NewNetworkServiceEndpointRegistryClient(ctx context.Context, opts ...Option) registry.NetworkServiceEndpointRegistryClient
NewNetworkServiceEndpointRegistryClient creates a new NewNetworkServiceEndpointRegistryClient that can be used for NSE registration.
func NewNetworkServiceRegistryClient ¶
func NewNetworkServiceRegistryClient(ctx context.Context, opts ...Option) registry.NetworkServiceRegistryClient
NewNetworkServiceRegistryClient creates a new NewNetworkServiceRegistryClient that can be used for NS registration.
Types ¶
type Option ¶
type Option func(clientOpts *clientOptions)
Option is an option pattern for NewNetworkServiceRegistryClient, NewNetworkServiceEndpointRegistryClient
func WithAuthorizeNSERegistryClient ¶ added in v1.7.0
func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registry.NetworkServiceEndpointRegistryClient) Option
WithAuthorizeNSERegistryClient sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSRegistryClient ¶ added in v1.7.0
func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registry.NetworkServiceRegistryClient) Option
WithAuthorizeNSRegistryClient sets authorization NetworkServiceRegistry chain element
func WithClientURL ¶ added in v1.4.0
WithClientURL sets client URL
func WithDialOptions ¶
func WithDialOptions(dialOptions ...grpc.DialOption) Option
WithDialOptions sets dial options
func WithDialTimeout ¶ added in v1.13.0
WithDialTimeout sets grpc dial timeout
func WithNSAdditionalFunctionality ¶
func WithNSAdditionalFunctionality(additionalFunctionality ...registry.NetworkServiceRegistryClient) Option
WithNSAdditionalFunctionality sets additional functionality
func WithNSClientURLResolver ¶ added in v1.4.0
func WithNSClientURLResolver(c registry.NetworkServiceRegistryClient) Option
WithNSClientURLResolver sets ns client URL resolver
func WithNSEAdditionalFunctionality ¶
func WithNSEAdditionalFunctionality(additionalFunctionality ...registry.NetworkServiceEndpointRegistryClient) Option
WithNSEAdditionalFunctionality sets additional functionality
func WithNSEClientURLResolver ¶ added in v1.4.0
func WithNSEClientURLResolver(c registry.NetworkServiceEndpointRegistryClient) Option
WithNSEClientURLResolver sets nse client URL resolver