Documentation ¶
Overview ¶
将io.Reader转换成io.ReadSeeker。 功能
- 超过一定大小、将临时缓冲转成临时文件
- 异步读取源信息
- 异步读取源信息后关闭
Attention
使用异步读取数据时候, 在调用其他方法之前一定要先使用Await。 该操作等待全部数据的加载, 同时可以处理读取数据时的错误。
Index ¶
- Constants
- Variables
- type Temporary
- func NewAsyncTemporary(reader io.Reader, maxBufferSize int64, fileDir string, filePattern string) (_ Temporary)
- func NewMustCloseReaderAsyncTemporary(readcloser io.ReadCloser, maxBufferSize int64, fileDir string, ...) (_ Temporary)
- func NewTemporary(reader io.Reader, maxBufferSize int64, fileDir string, filePattern string) (_ Temporary, err error)
Constants ¶
View Source
const ( TemporaryBuffer string = "Buffer" TemporaryFile string = "File" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.