dial

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

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

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