files_watcher

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package files_watcher Time : 2022/11/2 20:18 Author : xushiyin contact : yuqingxushiyin@gmail.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesWatcher

type FilesWatcher struct {
	Logger *log.Entry
	// contains filtered or unexported fields
}

func NewFilesWatcher

func NewFilesWatcher(ctx context.Context, isDaemon bool, logger *log.Entry) (*FilesWatcher, error)

func (*FilesWatcher) AddFiles

func (fw *FilesWatcher) AddFiles() error

AddFiles adds files which are from config to the watcher

func (*FilesWatcher) CheckDirStructure

func (fw *FilesWatcher) CheckDirStructure() error

func (*FilesWatcher) Close

func (fw *FilesWatcher) Close() error

func (*FilesWatcher) GetAreaSrcDirEntries

func (fw *FilesWatcher) GetAreaSrcDirEntries() error

func (*FilesWatcher) IsDaemon

func (fw *FilesWatcher) IsDaemon() bool

func (*FilesWatcher) LogErr

func (fw *FilesWatcher) LogErr(err error, message string, args ...interface{}) error

Jump to

Keyboard shortcuts

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