Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnClosed = errors.New("conn closed")
ErrConnClosed .
Functions ¶
func NewCliTransHandlerFactory ¶
func NewCliTransHandlerFactory() remote.ClientTransHandlerFactory
NewCliTransHandlerFactory creates a new netpollmux client transport handler factory.
func NewSvrTransHandlerFactory ¶
func NewSvrTransHandlerFactory() remote.ServerTransHandlerFactory
NewSvrTransHandlerFactory creates a default netpollmux remote.ServerTransHandlerFactory.
Types ¶
type ControlFrame ¶ added in v0.3.0
type ControlFrame struct{}
func NewControlFrame ¶ added in v0.3.0
func NewControlFrame() *ControlFrame
func (*ControlFrame) Read ¶ added in v0.3.0
func (p *ControlFrame) Read(iprot thrift.TProtocol) (err error)
func (*ControlFrame) String ¶ added in v0.3.0
func (p *ControlFrame) String() string
type EventHandler ¶
type EventHandler interface {
Recv(bufReader remote.ByteBuffer, err error) error
}
EventHandler is used to handle events
type MuxPool ¶
type MuxPool struct {
// contains filtered or unexported fields
}
MuxPool manages a pool of long connections.
func NewMuxConnPool ¶
NewMuxConnPool size must be adjust to 2^N
func (*MuxPool) Close ¶
Close is to release resource of ConnPool, it is executed when client is closed.
Click to show internal directories.
Click to hide internal directories.