Documentation ¶
Index ¶
Constants ¶
View Source
const ( OPEN = 0 CLOSE = 1 )
Variables ¶
View Source
var ErrClosedBuffer = errors.New("closed buffer")
View Source
var ErrClosedPool = errors.New("closed pool")
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer interface { Cap() uint32 Len() uint32 Put(data interface{}) (bool, error) Get() (interface{}, error) Close() bool Closed() bool }
FIFO的缓冲器类型
type MultipleReader ¶
type MultipleReader interface {
Reader() io.ReadCloser
}
func NewMultipleReader ¶
func NewMultipleReader(reader io.Reader) (multiple MultipleReader, err error)
Click to show internal directories.
Click to hide internal directories.