reader

package
v4.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentPath

func GetCurrentPath(path string) string

func GetFileInodeNum

func GetFileInodeNum(path string) uint64

Types

type Reader

type Reader struct {
	FilePath string //配置的路径 正则路径

	Stream      chan string
	CurrentPath string //当前的路径
	Close       chan struct{}
	FD          uint64 // 文件的inode
	// contains filtered or unexported fields
}

func NewReader

func NewReader(filepath string, stream chan string) (*Reader, error)

func (*Reader) Start

func (r *Reader) Start()

func (*Reader) StartRead

func (r *Reader) StartRead()

func (*Reader) Stop

func (r *Reader) Stop()

func (*Reader) StopRead

func (r *Reader) StopRead() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL