dial

package
v1.12.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

Package dial will dial up a grpc.ClientConnInterface if a client *url.URL is provided in the ctx, retrievable by clienturlctx.ClientURL(ctx) and put the resulting grpc.ClientConnInterface into the ctx using clientconn.Store(..) where it can be retrieved by other chain elements using clientconn.Load(...)

Package dial will dial up a grpc.ClientConnInterface if a client *url.URL is provided in the ctx, retrievable by clienturlctx.ClientURL(ctx) and put the resulting grpc.ClientConnInterface into the ctx using clientconn.Store(..) where it can be retrieved by other chain elements using clientconn.Load(...)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkServiceEndpointRegistryClient

func NewNetworkServiceEndpointRegistryClient(chainCtx context.Context, opts ...Option) registry.NetworkServiceEndpointRegistryClient

NewNetworkServiceEndpointRegistryClient - returns a new null client that does nothing but call next.NetworkServiceEndpointRegistryClient(ctx).

func NewNetworkServiceRegistryClient

func NewNetworkServiceRegistryClient(chainCtx context.Context, opts ...Option) registry.NetworkServiceRegistryClient

NewNetworkServiceRegistryClient - returns a new null client that does nothing but call next.NetworkServiceRegistryClient(ctx).

Types

type Option

type Option func(*option)

Option - options for the dial chain element

func WithDialOptions

func WithDialOptions(dialOptions ...grpc.DialOption) Option

WithDialOptions - grpc.DialOptions for use by the dial chain element

func WithDialTimeout

func WithDialTimeout(dialTimeout time.Duration) Option

WithDialTimeout - dialTimeout for use by dial chain element.

Jump to

Keyboard shortcuts

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