Documentation ¶
Overview ¶
Package hotreload is func library that implement reload service on development stage. # This manifest was generated by ymir. DO NOT EDIT.
Package hotreload is func library that implement reload service on development stage. # This manifest was generated by ymir. DO NOT EDIT.
Package hotreload is func library that implement reload service on development stage. # This manifest was generated by ymir. DO NOT EDIT.
Package hotreload is func library that implement reload service on development stage. # This manifest was generated by ymir. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileWatcherEvent ¶
type FileWatcherEvent struct {
Filenames []string
}
FileWatcherEvent event watcher data.
type Option ¶
Option is Configure type return func.
func WithLogger ¶
WithLogger will assign to field logger Configure.
type Watcher ¶
type Watcher interface { Start(ctx context.Context) Stop() error Add(filename string) error EventsCh() chan *FileWatcherEvent }
Watcher abstract of fileWatcher instances.
func NewFileWatcher ¶
NewFileWatcher create a file watcher that will watch all the files/folders from configFiles if success a fileWatcher will be returned and a nil error otherwise an error and a nil fileWatcher are returned.