Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Op Op Path string LastKnownChecksum string // contains filtered or unexported fields }
Event decsribes a file change event
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter matches filepaths to a list of patterns
type Op ¶
type Op int
Op describes the different types of file operations
const ( // Update is a file op where the file is updated Update Op = iota // Remove is a file op where the file is removed Remove // Skip is a file op where the remote file matches the local file so is not transferred Skip // Get is when a file should be re-fetched, used in download operations Get )
type Watcher ¶
type Watcher struct { Events chan Event // contains filtered or unexported fields }
Watcher is the object used to watch files for change and notify on any events, these events can then be passed along to kit to be sent to shopify.
func NewWatcher ¶
NewWatcher will create a new file change watching for a given directory defined in an environment
Click to show internal directories.
Click to hide internal directories.