Documentation ¶
Index ¶
- func NewReader(meta *reader.Meta, conf conf.MapConf) (reader.Reader, error)
- type ActiveReader
- func (ar *ActiveReader) Close() error
- func (ar *ActiveReader) CloseNoSync() error
- func (ar *ActiveReader) Lag() (rl *LagInfo, err error)
- func (ar *ActiveReader) ReadDone() bool
- func (ar *ActiveReader) ResetFileMeta() error
- func (ar *ActiveReader) Run()
- func (ar *ActiveReader) Start()
- func (ar *ActiveReader) Status() StatsInfo
- func (ar *ActiveReader) Stop() error
- func (ar *ActiveReader) SyncMeta() string
- type Reader
- func (r *Reader) Close() error
- func (r *Reader) Lag() (*LagInfo, error)
- func (r *Reader) Name() string
- func (r *Reader) ReadLine() (string, error)
- func (r *Reader) Reset() error
- func (r *Reader) SetMode(mode string, value interface{}) error
- func (r *Reader) SetRunTime(mode string, value interface{}) error
- func (r *Reader) Source() string
- func (r *Reader) Start() error
- func (r *Reader) Status() StatsInfo
- func (r *Reader) SyncMeta()
- func (r *Reader) SyncMetaClose()
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActiveReader ¶
type ActiveReader struct {
// contains filtered or unexported fields
}
func NewActiveReader ¶
func NewActiveReader(originPath, realPath, whence, inode string, r *Reader) (ar *ActiveReader, err error)
func (*ActiveReader) Close ¶
func (ar *ActiveReader) Close() error
func (*ActiveReader) CloseNoSync ¶
func (ar *ActiveReader) CloseNoSync() error
func (*ActiveReader) Lag ¶
func (ar *ActiveReader) Lag() (rl *LagInfo, err error)
func (*ActiveReader) ReadDone ¶
func (ar *ActiveReader) ReadDone() bool
func (*ActiveReader) ResetFileMeta ¶
func (ar *ActiveReader) ResetFileMeta() error
func (*ActiveReader) Run ¶
func (ar *ActiveReader) Run()
func (*ActiveReader) Start ¶
func (ar *ActiveReader) Start()
func (*ActiveReader) Status ¶
func (ar *ActiveReader) Status() StatsInfo
func (*ActiveReader) Stop ¶
func (ar *ActiveReader) Stop() error
func (*ActiveReader) SyncMeta ¶
func (ar *ActiveReader) SyncMeta() string
除了sync自己的bufreader,还要sync一行linecache
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) SetRunTime ¶
func (*Reader) SyncMetaClose ¶
func (r *Reader) SyncMetaClose()
Click to show internal directories.
Click to hide internal directories.