Documentation ¶
Index ¶
- type GZ
- type Opts
- type Reader
- func (r *Reader) Close() error
- func (r *Reader) Lag() (rl *LagInfo, err error)
- func (r *Reader) Name() string
- func (r *Reader) NewSourceIndex() []reader.SourceIndex
- func (r *Reader) Read(p []byte) (n int, err error)
- func (r *Reader) ReadDone() bool
- func (r *Reader) Source() string
- func (r *Reader) SyncMeta() error
- type SourceReader
- type Tar
- type ZIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GZ ¶
type GZ struct {
// contains filtered or unexported fields
}
func (*GZ) NewSourceIndex ¶
func (t *GZ) NewSourceIndex() []reader.SourceIndex
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
FileReader reader 接口方法
func NewReader ¶
NewReader 实现对压缩包的读取 还可以实现更多功能: 1. ignoreHidden 忽略压缩包中的隐藏文件 2. suffixes []string 只读某些后缀 3. validFileRegex 只读匹配的文件
func (*Reader) NewSourceIndex ¶
func (r *Reader) NewSourceIndex() []reader.SourceIndex
type SourceReader ¶
type SourceReader interface { io.ReadCloser reader.NewSourceRecorder Source() string Lag() (rl *LagInfo, err error) }
type Tar ¶
type Tar struct {
// contains filtered or unexported fields
}
func (*Tar) NewSourceIndex ¶
func (t *Tar) NewSourceIndex() []reader.SourceIndex
type ZIP ¶
type ZIP struct {
// contains filtered or unexported fields
}
func (*ZIP) NewSourceIndex ¶
func (t *ZIP) NewSourceIndex() []reader.SourceIndex
Click to show internal directories.
Click to hide internal directories.