Documentation ¶
Index ¶
- func FormatCount(count uint64) string
- func NewNoCloseBody(b []byte) io.ReadCloser
- func NewRWC(r io.Reader, w io.Writer, c io.Closer) io.ReadWriteCloser
- type Broadcast
- type BufferReader
- type Counter
- type FlowReadWriter
- type FlowReader
- type FlowWriter
- type IOCounter
- type MultiplexIO
- func (mio *MultiplexIO) Close() error
- func (mio *MultiplexIO) ReadMsg() ([]byte, uint32, uint32, error)
- func (mio *MultiplexIO) WriteMsg(b []byte, rid, lid uint32) error
- func (mio *MultiplexIO) WriteMsgWithPreSize(b, pre []byte, rid, lid uint32, size int) error
- func (mio *MultiplexIO) WriteMsgWithSize(b []byte, rid, lid uint32, size int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCount ¶
func NewNoCloseBody ¶
func NewNoCloseBody(b []byte) io.ReadCloser
Types ¶
type Broadcast ¶
type Broadcast struct {
// contains filtered or unexported fields
}
func NewBroadcast ¶
func NewBroadcast() *Broadcast
func (*Broadcast) DelAndCloseListener ¶
func (*Broadcast) DelListener ¶
func (*Broadcast) SetListener ¶
func (bc *Broadcast) SetListener(wc io.WriteCloser) int64
type BufferReader ¶
type BufferReader struct {
// contains filtered or unexported fields
}
func NewBufferReader ¶
func NewBufferReader(rp readerPacket) *BufferReader
func NewBufferReaderWithOpt ¶
func NewBufferReaderWithOpt(rp readerPacket, min, max int) *BufferReader
type FlowReadWriter ¶
type FlowReadWriter interface { io.ReadWriter ReadCount(*int) func() WriteCount(*int) func() }
func NewFlowReadWriter ¶
func NewFlowReadWriter(rw io.ReadWriter) FlowReadWriter
type FlowReader ¶
func NewFlowReader ¶
func NewFlowReader(r io.Reader) FlowReader
type FlowWriter ¶
func NewFlowWriter ¶
func NewFlowWriter(w io.Writer) FlowWriter
type IOCounter ¶
type IOCounter struct {
// contains filtered or unexported fields
}
func NewIOCounter ¶
type MultiplexIO ¶
type MultiplexIO struct {
// contains filtered or unexported fields
}
func NewMultiplexIO ¶
func NewMultiplexIO(rwc io.ReadWriteCloser) *MultiplexIO
func (*MultiplexIO) Close ¶
func (mio *MultiplexIO) Close() error
func (*MultiplexIO) WriteMsgWithPreSize ¶
func (mio *MultiplexIO) WriteMsgWithPreSize(b, pre []byte, rid, lid uint32, size int) error
func (*MultiplexIO) WriteMsgWithSize ¶
func (mio *MultiplexIO) WriteMsgWithSize(b []byte, rid, lid uint32, size int) error
Click to show internal directories.
Click to hide internal directories.