gob icon indicating copy to clipboard operation
gob copied to clipboard

File system watching interface

Open b1lly opened this issue 11 years ago • 4 comments

As an interested open-source contributor, I'd like a simple, well documented interface to include Gob's file system/dependency watcher into my project.

b1lly avatar Apr 06 '14 16:04 b1lly

Do you mean integration with gob itself such as gob agent? Otherwise I don't see a huge need for this.

ttacon avatar Apr 23 '14 19:04 ttacon

I mean gob itself. It seems a little gross how it's handled. At the very least, the bulk saving enhancement should be looked at, and probably break the file system watchers into go watchers or template watchers.

b1lly avatar Apr 24 '14 03:04 b1lly

So I thought about this more.

I think this interface should provide a way to basically spawn and manage multiple processes based on os limits and basically send messages back to gob to restart the associated application process. We would be able to beat the watcher limit problem, since watchers are limited at the process level. It should also be smart about managing duplicate dependency watchers across multiple applications that are running.

I think we can probably hook into the gob agent to create this communication channel.

Does this make sense?

b1lly avatar Apr 24 '14 17:04 b1lly

This sounds like a separate library that gob could depend on, but this functionality seems a little outside gob's responsibilities.

ttacon avatar Apr 26 '14 14:04 ttacon