Versions in this module Expand all Collapse all v1 v1.0.0 Jan 18, 2024 Changes in this version + var DefaultProtocolHandler = &ProtocolHandler + var TestConnProxy = (&ProtocolHandler{}).connProxy + type BufferPool interface + Get func() []byte + Put func([]byte) + type ProtocolHandler struct + Director func(*stdhttp.Request) + ErrorHandler func(context.Context, error) + FlushInterval time.Duration + Transport stdhttp.RoundTripper + func (dph *ProtocolHandler) GetCliOptions(_ context.Context) ([]client.Option, error) + func (dph *ProtocolHandler) HandleErr(ctx context.Context, err error) error + func (dph *ProtocolHandler) HandleRspBody(ctx context.Context, _ interface{}) error + func (dph *ProtocolHandler) TransReqBody(ctx context.Context) (interface{}, error) + func (dph *ProtocolHandler) TransRspBody(context.Context) (interface{}, error) + func (dph *ProtocolHandler) WithCtx(ctx context.Context) (context.Context, error)