Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileHandle ¶ added in v1.0.2
type FileHandle struct {
// contains filtered or unexported fields
}
FileHandle
func (*FileHandle) GetFile ¶ added in v1.0.2
func (fh *FileHandle) GetFile() *os.File
GetFile 获取文件操作句柄
type FilePool ¶
type FilePool struct {
// contains filtered or unexported fields
}
FilePool 文件池
func NewFilePool ¶
NewFilePool 初始化文件池 默认会按 defaultExpireDur 进行淘汰 size 建议不用太大, 建议为待存放句柄的个数 1 倍好, 这样性能更加
Click to show internal directories.
Click to hide internal directories.