grpc_client

package
v0.0.0-...-f5cdc36 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCClientServiceConn

func NewGRPCClientServiceConn(ctx context.Context, commonMW *ClientMiddleware, target string) (*grpc.ClientConn, error)

Types

type ClientMiddleware

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

func NewClientMiddleware

func NewClientMiddleware(logger logger.Logger, cfg *config.Config, tracer opentracing.Tracer) *ClientMiddleware

func (*ClientMiddleware) GetInterceptor

func (m *ClientMiddleware) GetInterceptor() func(
	ctx context.Context,
	method string,
	req interface{},
	reply interface{},
	cc *grpc.ClientConn,
	invoker grpc.UnaryInvoker,
	opts ...grpc.CallOption,
) error

func (*ClientMiddleware) Logger

func (m *ClientMiddleware) Logger(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func (*ClientMiddleware) Tracer

func (m *ClientMiddleware) Tracer() opentracing.Tracer

Jump to

Keyboard shortcuts

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