conn

package
v0.0.0-...-4b6c1ef Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(r discovery.Resolver, opts ...FactoryOption) *Factory

func (*Factory) New

func (f *Factory) New(ctx context.Context, service string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

type FactoryOption

type FactoryOption func(*Factory)

func WithDialOpts

func WithDialOpts(opts []grpc.DialOption) FactoryOption

func WithInsecure

func WithInsecure() FactoryOption

func WithRootCaPool

func WithRootCaPool(p *x509.CertPool) FactoryOption

Jump to

Keyboard shortcuts

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