MCPcopy Create free account
hub / github.com/apache/thrift / NewTDebugProtocolFactoryWithLogger

Function NewTDebugProtocolFactoryWithLogger

lib/go/thrift/debug_protocol.go:77–83  ·  view source on GitHub ↗

NewTDebugProtocolFactoryWithLogger creates a TDebugProtocolFactory.

(underlying TProtocolFactory, logPrefix string, logger Logger)

Source from the content-addressed store, hash-verified

75
76// NewTDebugProtocolFactoryWithLogger creates a TDebugProtocolFactory.
77func NewTDebugProtocolFactoryWithLogger(underlying TProtocolFactory, logPrefix string, logger Logger) *TDebugProtocolFactory {
78 return &TDebugProtocolFactory{
79 Underlying: underlying,
80 LogPrefix: logPrefix,
81 Logger: logger,
82 }
83}
84
85func (t *TDebugProtocolFactory) GetProtocol(trans TTransport) TProtocol {
86 return &TDebugProtocol{

Callers 2

GetServerParamsFunction · 0.92
StartClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected