watcher

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessMessage

func ProcessMessage(message *babashka.Message) (any, error)

Types

type FsWatcher

type FsWatcher struct {
	Watcher     *fsnotify.Watcher
	Opts        *Opts
	WatcherInfo *WatcherInfo
	Path        string
}

type Opts

type Opts struct {
	DelayMs   uint64 `json:"delay-ms"`
	Recursive bool   `json:"recursive"`
	Dedup     bool   `json:"dedup"`
}

type Response

type Response struct {
	Type  string  `json:"type"`
	Path  string  `json:"path"`
	Dest  *string `json:"dest,omitempty"`
	Error *string `json:"error,omitempty"`
}

type WatcherInfo

type WatcherInfo struct {
	WatcherId int `json:"watcher/id"`
}

Jump to

Keyboard shortcuts

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