Documentation
¶
Index ¶
- Variables
- type Bufio
- func (b Bufio) GetReadWriter(irw io.ReadWriter) *bufio.ReadWriter
- func (b Bufio) GetReader(r io.Reader) (br *bufio.Reader)
- func (b Bufio) GetWriter(w io.Writer) (bw *bufio.Writer)
- func (b Bufio) PutReadWriter(br *bufio.ReadWriter)
- func (b Bufio) PutReader(br *bufio.Reader)
- func (b Bufio) PutWriter(bw *bufio.Writer)
- type Of
- type OfBytes
- type OfRequests
- type OfResponse
- type Pool
- type Request
- type Response
- type SyncBytes
- type SyncRequest
- type SyncResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Bufio16k = NewBufio(buffer16K)
Functions ¶
This section is empty.
Types ¶
type Bufio ¶
type Bufio struct {
// contains filtered or unexported fields
}
func (Bufio) GetReadWriter ¶
func (b Bufio) GetReadWriter(irw io.ReadWriter) *bufio.ReadWriter
func (Bufio) PutReadWriter ¶
func (b Bufio) PutReadWriter(br *bufio.ReadWriter)
type OfRequests ¶
type OfResponse ¶
type SyncBytes ¶
type SyncBytes struct {
// contains filtered or unexported fields
}
SyncBytes uses the standard library's sync.Pool to implement the Bytes
interface.
func NewSyncBytes ¶
func NewSyncBytes() (b SyncBytes)
type SyncRequest ¶
type SyncRequest struct {
// contains filtered or unexported fields
}
SyncRequest uses the standard library's sync.Pool.
func NewSyncRequest ¶
func NewSyncRequest() (s *SyncRequest)
func (*SyncRequest) GetRequest ¶
func (r *SyncRequest) GetRequest() (req *Request)
func (*SyncRequest) PutRequest ¶
func (r *SyncRequest) PutRequest(req *Request)
type SyncResponse ¶
type SyncResponse struct {
// contains filtered or unexported fields
}
SyncRequest uses the standard library's sync.Pool.
func NewSyncResponse ¶
func NewSyncResponse() (s *SyncResponse)
func (*SyncResponse) GetResponse ¶
func (r *SyncResponse) GetResponse() (resp *Response)
func (*SyncResponse) PutResponse ¶
func (r *SyncResponse) PutResponse(resp *Response)
Click to show internal directories.
Click to hide internal directories.