Documentation
¶
Index ¶
- func CreateTempDir() (string, error)
- func GetFileFromExplorer() (*models.File, error)
- func HandleFileEvents(watcher *fsnotify.Watcher, ctx context.Context) (string, error)
- func InitializeWatcher(tempDir string) (*fsnotify.Watcher, error)
- func OpenExplorer(path string) error
- func ReadFull(f *os.File) []byte
- func WaitForFile(tempDir string) (string, error)
- func WriteData(rows *sql.Rows, info *models.File) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempDir ¶
func GetFileFromExplorer ¶
GetFileFromExplorer opens the file explorer, waits for the user to create or modify a file, reads the file, and returns the file's data wrapped in a models.File object.
func HandleFileEvents ¶
func OpenExplorer ¶
func WaitForFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.