grpcutil

package
v0.0.0-...-8f69376 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerFromFieldLogger

func LoggerFromFieldLogger(fl logrus.FieldLogger) logrus.StdLogger

Types

type Dialer

type Dialer interface {
	Dial(ctx context.Context, addr string) (*grpc.ClientConn, error)
}

func NewGRPCDialer

func NewGRPCDialer(c GRPCDialerConfig) Dialer

type GRPCDialerConfig

type GRPCDialerConfig struct {
	Log      logrus.StdLogger
	CredFunc func() (credentials.TransportCredentials, error)
	Opts     []grpc.DialOption
}

Jump to

Keyboard shortcuts

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