Commit Graph

177 Commits

Author SHA1 Message Date
Seednode abc0677b2c Replace crypto/rand with math/rand/v2 to test 2024-02-08 16:37:49 -06:00
Seednode 065cb275ae All arguments are now at most two hyphenated words 2024-02-06 16:10:06 -06:00
Seednode 8939f00653 Remove zstd encoder re-use, as it runs at fairly long intervals and isn't worth keeping the object alive 2024-02-06 10:12:55 -06:00
Seednode cd9443a64b Updated transitive dependencies 2024-01-31 11:30:37 -06:00
Seednode 0baba06ace Temporarily remove CSP header for flash 2024-01-30 15:22:15 -06:00
Seednode b8171a535a Remove --binary-prefix and always use decimal prefixes; update Readme for clarity 2024-01-30 11:14:36 -06:00
Seednode 83809696ac Change --info to --api; /index/rebuild now requires POST instead of GET request; merge --ignore and --ignore-file 2024-01-30 10:12:05 -06:00
Seednode 76456f586d Remove --handlers, remove all logging unless --verbose is passed 2024-01-15 09:28:59 -06:00
Seednode 61060f7895 Remove --page-length and HTML index dump, fix media type identification 2024-01-15 08:51:41 -06:00
Seednode 06c6b70b2c Update release year 2024-01-14 12:39:14 -06:00
Seednode 6bd97f30c2 Re-use zstd encoder 2024-01-14 09:43:22 -06:00
Seednode 2f06ae3605 Remove non-zstd compression options 2024-01-14 09:29:22 -06:00
Seednode 4e85621335 Round all durations to microseconds 2024-01-11 03:36:16 -06:00
Seednode 9e458aa0bb Move regex compilation to global variable 2024-01-10 13:07:24 -06:00
Seednode d568d10e78 Move walkPath() defers out to calling function, for more intuitive readability 2024-01-10 11:58:55 -06:00
Seednode 9b6d9464e6 Replace microsecond delay with another sync.WaitGroup 2024-01-09 17:36:25 -06:00
Seednode 6074b7e546 Re-add microsecond delay to walkPath() invocations 2024-01-09 17:17:26 -06:00
Seednode 6f29f89acf Continue scanning instead of aborting on fs.ErrPermission or fs.ErrNotExist; add --debug flag to view output from those errors; initialize error logging earlier in setup 2024-01-06 09:41:30 -06:00
Seednode 646c962e5d Add 1 microsecond delay to each call to walkPath() to fix incorrect filesMatched stat 2024-01-05 20:03:49 -06:00
Seednode 5167ff457e Allow empty paths, notifying if no valid files are found 2024-01-05 18:50:45 -06:00
Seednode ccff56d28d Rename scanStatsChannel => scanStats, add workaround for occasionally missing single file when indexing 2024-01-05 07:29:16 -06:00
Seednode b90f6cfc64 Updated transitive dependencies 2024-01-04 08:43:52 -06:00
Seednode 9e2b4ad9c3 Add --binary-prefix to output IEC binary prefixes instead of SI decimal prefixes 2024-01-03 12:37:32 -06:00
Seednode e032be0936 Set default concurrency from 1024->8192, replace chan int with chan struct{} for concurrency limits 2024-01-01 11:36:19 -06:00
Seednode 127e0ffe22 Restrict --admin-prefix values to same character set as --ignore-file 2023-12-31 16:04:54 -06:00
Seednode 3702cac56e Properly escape '-' in ignore filename pattern 2023-12-31 15:57:39 -06:00
Seednode 843e54c36a Add -_ to supported character list for ignore filename 2023-12-31 15:54:43 -06:00
Seednode 23fe33fbd3 Add support for configurable ignore-file name 2023-12-31 15:50:13 -06:00
Seednode 14adbdf742 Add concurrency limits; add optional admin path prefix 2023-12-17 06:35:03 -06:00
Seednode fef51438c0 Append newline to index rebuild HTTP response; remove unneeded error handling for index rebuild handler registration 2023-12-17 05:28:24 -06:00
Seednode e9a3ae5e58 Restructure variable initializations 2023-12-17 05:16:46 -06:00
Seednode eaed4f11ef Add --ignore, to skip directories 2023-12-07 10:34:19 -06:00
Seednode d902368845 Add first/prev/next/last buttons to sorted content 2023-10-20 17:18:35 -05:00
Seednode 81d7e60d0c Restructure endpoints to be more structured, bump major version 2023-10-09 10:13:15 -05:00
Seednode 9d789cb439 Rework filewalk function yet again 2023-10-05 16:33:23 -05:00
Seednode 1c04c8291e Reword 'Selecting from' as 'Selected' when indexing files 2023-10-05 11:18:21 -05:00
Seednode 17abb25e74 Split scanPaths stat counter incrementing into separate goroutines 2023-10-04 21:54:06 -05:00
Seednode 9ae0aa60d3 Use int returned from w.Write() instead of calculating length of []byte 2023-10-04 15:47:43 -05:00
Seednode 84c25310da Replace single-value registered format struct with the map value itself 2023-10-04 14:09:49 -05:00
Seednode 5dc218c60e Remove timestamp from error output, allow min/max file count value of 0 2023-10-03 15:00:32 -05:00
Seednode 5a37bf3beb Exit early from path validation if checks pass, instead of completing the loop 2023-10-03 11:07:58 -05:00
Seednode e67752470d Add --fallback option to serve every file, even if no corresponding format is registered 2023-10-03 09:44:50 -05:00
Seednode 13440f6a4e Apply normalization to paths before passing to list for index 2023-10-03 09:28:00 -05:00
Seednode 900b59155b Replace filepath.WalkDir() with recursive function based on os.ReadDir(), to skip unnecessary Stat() calls 2023-10-03 08:26:55 -05:00
Seednode 71497198fa Remove -c shorthand for --index, update PGO profile 2023-09-29 08:31:35 -05:00
Seednode 1d0e4634c7 Rename cache to index for more accurate terminology 2023-09-28 10:09:45 -05:00
Seednode 19c2e616fc Rework verbose output for visual consistency 2023-09-28 07:29:33 -05:00
Seednode 0e8ac8cdc5 Preserve case of filter query params even without --case-sensitive, include filename in --verbose output for cache import/export 2023-09-28 06:15:10 -05:00
Seednode 602f344654 Split sorting types, methods, and functions into their own file 2023-09-28 03:39:16 -05:00
Seednode c57bb9c4c2 Sorting now supports arbitrary numbering length, so long as it is sequential 2023-09-28 03:36:26 -05:00