Documentation ¶
Overview ¶
Package connect provides NS, NSE registry server chain elements providing access to remote registry servers
Code generated by "-output ns_client_map.gen.go -type nsClientMap<string,*nsClient> -output ns_client_map.gen.go -type nsClientMap<string,*nsClient>"; DO NOT EDIT.
Code generated by "-output ns_info_map.gen.go -type nsInfoMap<string,*nsInfo> -output ns_info_map.gen.go -type nsInfoMap<string,*nsInfo>"; DO NOT EDIT.
Code generated by "-output nse_client_map.gen.go -type nseClientMap<string,*nseClient> -output nse_client_map.gen.go -type nseClientMap<string,*nseClient>"; DO NOT EDIT.
Code generated by "-output nse_info_map.gen.go -type nseInfoMap<string,*nseInfo> -output nse_info_map.gen.go -type nseInfoMap<string,*nseInfo>"; DO NOT EDIT.
Index ¶
- func NewNetworkServiceEndpointRegistryClient(ctx context.Context, connectTo *url.URL, opts ...Option) registry.NetworkServiceEndpointRegistryClient
- func NewNetworkServiceEndpointRegistryServer(ctx context.Context, clientOptions ...Option) registry.NetworkServiceEndpointRegistryServer
- func NewNetworkServiceRegistryClient(ctx context.Context, connectTo *url.URL, opts ...Option) registry.NetworkServiceRegistryClient
- func NewNetworkServiceRegistryServer(ctx context.Context, clientOptions ...Option) registry.NetworkServiceRegistryServer
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkServiceEndpointRegistryClient ¶
func NewNetworkServiceEndpointRegistryClient(ctx context.Context, connectTo *url.URL, opts ...Option) registry.NetworkServiceEndpointRegistryClient
NewNetworkServiceEndpointRegistryClient returns a new NSE registry client chain element connecting to the remote
NSE registry server
func NewNetworkServiceEndpointRegistryServer ¶
func NewNetworkServiceEndpointRegistryServer( ctx context.Context, clientOptions ...Option, ) registry.NetworkServiceEndpointRegistryServer
NewNetworkServiceEndpointRegistryServer - server chain element that creates client subchains and requests them selecting by
clienturlctx.ClientURL(ctx)
func NewNetworkServiceRegistryClient ¶
func NewNetworkServiceRegistryClient(ctx context.Context, connectTo *url.URL, opts ...Option) registry.NetworkServiceRegistryClient
NewNetworkServiceRegistryClient returns a new NS registry client chain element connecting to the remote
NS registry server
func NewNetworkServiceRegistryServer ¶
func NewNetworkServiceRegistryServer( ctx context.Context, clientOptions ...Option, ) registry.NetworkServiceRegistryServer
NewNetworkServiceRegistryServer - server chain element that creates client subchains and requests them selecting by
clienturlctx.ClientURL(ctx)
Types ¶
type Option ¶
type Option func(connectOpts *connectOptions)
Option is an option pattern for NewNetworkServiceRegistryClient, NewNetworkServiceEndpointRegistryClient
func WithDialOptions ¶
func WithDialOptions(dialOptions ...grpc.DialOption) Option
WithDialOptions sets dial options
func WithNSAdditionalFunctionality ¶
func WithNSAdditionalFunctionality(additionalFunctionality ...registry.NetworkServiceRegistryClient) Option
WithNSAdditionalFunctionality sets additional functionality
func WithNSEAdditionalFunctionality ¶
func WithNSEAdditionalFunctionality(additionalFunctionality ...registry.NetworkServiceEndpointRegistryClient) Option
WithNSEAdditionalFunctionality sets additional functionality