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(...)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(chainCtx context.Context, opts ...Option) networkservice.NetworkServiceClient
NewClient - returns new dial chain element
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 ¶
WithDialTimeout - dialTimeout for use by dial chain element.
Click to show internal directories.
Click to hide internal directories.