Commit Graph

131 Commits

Author SHA1 Message Date
Seednode 72e41ba413 Added version endpoint 2023-06-03 15:51:08 -05:00
Seednode abae8ba4c1 Replaced net/http with julienschmidt/httprouter and removed (broken) video support, changed stats/debug endpoints 2023-06-03 13:29:49 -05:00
Seednode 29afaa3025 Changed wording of file count 2023-06-02 21:04:06 -05:00
Seednode 99ad647614 Added file count to HTML debug endpoint 2023-06-02 21:00:44 -05:00
Seednode 4679208eae Replace fmt.Println() + os.Exit(1) with log.Fatal() in error handler, error out if no useful paths are passed in 2023-05-31 13:01:24 -05:00
Seednode af9b79878f Switched back from go-chi to net/http, explicitly declared mux and http.Server 2023-05-31 12:43:07 -05:00
Seednode 8fc7084098 Recompressed favicons to save space, and replaced multiple favicon handler functions with a single catchall 2023-05-30 19:13:02 -05:00
Seednode 229aaa7da2 Added embedded favicons, and replaced default mux with go-chi 2023-05-30 18:47:26 -05:00
Seednode c31518d932 Added first served/last served/most served stats to /_/stats 2023-05-12 09:05:14 -05:00
Seednode 7184542cb6 Updated transitive dependencies 2023-05-11 23:22:31 -05:00
Seednode f6ac4b6e2b Added ?sort=asc when opening link via HTML debug page 2023-05-08 20:21:39 -05:00
Seednode 3e1fb6be6a Added video support 2023-05-08 20:05:10 -05:00
Seednode 2da8e79adb Updated transitive dependencies 2023-05-08 15:40:52 -05:00
Seednode 5f78094498 Simplified handler function structure 2023-05-08 13:12:51 -05:00
Seednode 4be011755b Added -b|--bind to bind to specific address 2023-05-08 11:45:57 -05:00
Seednode 5fdfaee80d Split /_/debug endpoint into /_/html and /_/json, formatted accordingly 2023-05-08 09:10:13 -05:00
Seednode 8dae3865c0 Renamed /_/index to /_/debug, and adjusted readme accordingly 2023-04-28 13:31:07 -05:00
Seednode 84af467feb Debug index output is now sorted 2023-04-28 13:26:47 -05:00
Seednode 9cd9c286c2 Added -d|--debug flag and /_/index endpoint 2023-04-28 13:19:07 -05:00
Seednode 15e2cc52cc Added check for empty input paths 2023-04-11 04:44:18 -05:00
Seednode 63d040839b Updated transitive dependencies 2023-02-26 18:57:52 -06:00
Seednode 966df032a6 Added retry to new file selection, with 10s timeout 2023-02-18 14:08:11 -06:00
Seednode d05550a991 Preallocate slices when possible, remove unnecessary check when sortOrder is provided 2023-02-18 13:00:08 -06:00
Seednode 537633a030 Added persistent stats file 2023-02-08 07:50:40 -06:00
Seednode 9087cf6b4d Replaced log.Fatal() with fmt.Println() and return for non-critical functions 2023-02-07 07:39:04 -06:00
Seednode 6a532e5511 Stats page should actually be sorted now 2023-02-06 12:23:59 -06:00
Seednode ae1a1bbc5e Added zstd compression for cache file 2023-02-05 14:34:22 -06:00
Seednode d2794c721f Removed commented-out old rand source initialization 2023-02-04 23:47:09 -06:00
Seednode 69c4ccfc97 Added support for persistent index file 2023-02-04 23:44:31 -06:00
Seednode 335f6bffde Combined root variable declarations into a block, changed increment/decrement functions to unexported 2023-01-27 13:17:13 -06:00
Seednode 635df29fbc All methods that might mutate state changed to unexported, and all fields set to unexported by default 2023-01-27 10:06:10 -06:00
Seednode 93fa3640ef Reverted changes that entirely broke debug, keeping change to printf strings 2023-01-24 19:06:15 -06:00
Seednode 3cb2e81ec7 Rearranged functions into alphabetical order 2023-01-24 12:03:26 -06:00
Seednode da5bdfe765 Replaced %v with more specific format string in printf calls 2023-01-24 10:13:09 -06:00
Seednode fa5ae95cb3 Renamed cache handler 2023-01-23 17:41:18 -06:00
Seednode 359ded19f2 Set all functions that modify state to unexported 2023-01-23 17:30:33 -06:00
Seednode 04d253c1e6 Log accesses to /_/stats and reduce verbosity of GenerateCache() 2023-01-21 16:37:32 -06:00
Seednode 66f6069d96 Directly call getFileList() when generating cache, instead of pickFile() 2023-01-21 16:20:35 -06:00
Seednode 3bf3c5b5ed Moved struct and method declarations to the appropriate source files 2023-01-21 16:08:59 -06:00
Seednode 340b637baf Added Get() and Set() functions for file index 2023-01-21 09:35:23 -06:00
Seednode fcdb81a9b7 Fixed double-scanning with cache enabled 2023-01-20 22:42:44 -06:00
Seednode 6c888ba20a Added filesize and timestamps to debug JSON output 2023-01-20 18:14:07 -06:00
Seednode 0f4c4845b2 JSON output for stats is now pretty-printed and sorted alphabetically 2023-01-19 20:31:02 -06:00
Seednode 1a4496b788 Added stats endpoint 2023-01-19 12:07:15 -06:00
Seednode 979a9e4d4c Added 200 Ok response when clearing cache 2023-01-18 19:14:39 -06:00
Seednode 42734cda62 Added /clear_cache endpoint to regenerate cache on demand 2023-01-18 12:11:23 -06:00
Seednode 0906bd6769 Updated copyright year 2023-01-18 11:19:29 -06:00
Seednode 19fa332ced Cached mode now generates cache on first run, not first HTTP request, to improve initial response time 2023-01-18 11:18:01 -06:00
Seednode d343be7253 Added support for time.Duration refresh intervals, instead of just integer seconds 2023-01-18 09:58:14 -06:00
Seednode 8ddbe8b2c6 Replaced <= 0 with < 1 for readability's sake 2022-12-20 18:24:07 -06:00