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
Click to show internal directories.
Click to hide internal directories.