Commit Graph

52 Commits

Author SHA1 Message Date
kim (grufwub)
c57939c470 custom max cache size + max file in cache size, improve cache.go readability
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 12:43:02 +01:00
kim (grufwub)
22fc120079 refactor cache code, move flags to separate file
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 11:57:42 +01:00
kim (grufwub)
c717ca68f2 add new todos to README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 11:57:12 +01:00
kim (grufwub)
2c9d68c2ac minor bug fixes during serving of gophermap / dir listings
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-15 10:52:03 +01:00
kim (grufwub)
4fee274ed5 update README to reflect new changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-14 11:50:32 +01:00
kim (grufwub)
4ef4edf6bc update default file cache size to 1000
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-14 11:50:19 +01:00
kim (grufwub)
3c8cd22c7b update file caches to use LRU policy to delete old
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-14 11:49:37 +01:00
kim (grufwub)
72934a3d3c fix README.md formatting
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 22:58:21 +01:00
kim (grufwub)
da1241ff5b add 'Please note' section to README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 22:55:06 +01:00
kim (grufwub)
a411bef934 catch small bug in + update README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 22:51:43 +01:00
kim (grufwub)
930f3b4262 update README.md with features + warnings + new todos
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 22:49:25 +01:00
kim (grufwub)
e1c74ae819 file caching now more threadsafe + added file monitor
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 22:48:49 +01:00
kim (grufwub)
c408727ba9 update README.md informing users that inline scripting not yet supported
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 20:22:50 +01:00
kim (grufwub)
965ea4e089 add last-line to reponse (somehow lost this in big changes...)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 14:46:13 +01:00
Kim
c376e64511
Merge pull request #1 from grufwub/file-caching
Merge file cache implementation + fix new item types
2020-04-13 14:41:08 +01:00
kim (grufwub)
85b389cbd9 add sample gophermap
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 14:40:03 +01:00
kim (grufwub)
16f754a884 file-cache implementation now working! pushing files out of cache TBA
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 14:39:35 +01:00
kim (grufwub)
e3e07948f1 separate out into separate files, first work towards file caching system
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-13 13:15:12 +01:00
kim (grufwub)
352bcb67f6 big code refactoring + work on supporting new item types
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 21:32:09 +01:00
kim (grufwub)
f736bcae99 add new item types supported to README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 21:31:50 +01:00
kim (grufwub)
4a3f56e919 update README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 16:13:57 +01:00
kim (grufwub)
242d09388b add logging for UID / GID priv dropping
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 16:13:41 +01:00
kim (grufwub)
62b59a5d6d add support for some auto-formatting of gophermap files
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 16:12:56 +01:00
kim (grufwub)
6d8c8fcaa4 change default hostname, print usage on 0 arg
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 10:05:06 +01:00
kim (grufwub)
a8c4aaba54 add support for different types of logging
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 09:49:13 +01:00
kim (grufwub)
ab5584ecfd only append LastLine to dir listings, not file.
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-12 09:09:06 +01:00
kim (grufwub)
de8f736410 add support for new error type + move back to Tab=byte('\t')
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 21:44:05 +01:00
kim (grufwub)
bb63109755 small formatting changes + efficiency improvements to worker
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 21:42:41 +01:00
kim (grufwub)
0cb0946f80 change name client->worker, more type standards+comments, improved error sending
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 19:32:35 +01:00
kim (grufwub)
84c8b9e288 update README.md todo list
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 19:31:58 +01:00
kim (grufwub)
fba084f663 update todo list in README
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 14:32:00 +01:00
kim (grufwub)
449bf7f1da update README.md description+todos
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 14:21:21 +01:00
kim (grufwub)
246462b828 update .gitignore + README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 14:17:21 +01:00
kim (grufwub)
cda5c9a269 remove redundant lines in logger
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 11:47:00 +01:00
kim (grufwub)
ccedef288f update README.md to reflect recent changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 11:45:12 +01:00
kim (grufwub)
94a0cbaa96 remove overly complicated ClientManager, add logging (system+access) support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-11 11:42:34 +01:00
kim (grufwub)
6d3fa4a146 minor bug fixes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 20:45:39 +01:00
kim (grufwub)
0335430756 minor format changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 20:40:11 +01:00
kim (grufwub)
1740b0e3c1 remove redundant code
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 20:39:18 +01:00
kim (grufwub)
a3c47a1f60 update README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 20:38:17 +01:00
kim (grufwub)
c4ed8a2ae9 update README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 20:35:22 +01:00
kim (grufwub)
637bfdb218 Merge branch 'master' of github.com:grufwub/gophor 2020-04-10 20:32:10 +01:00
kim (grufwub)
a11a718c4f big changes to ClientManager, separate goroutine to handle cleanup of old Clients
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 20:31:21 +01:00
Kim
2ccdf8a6ad
Create LICENSE 2020-04-10 18:54:44 +01:00
kim (grufwub)
242343ddac fix small bugs introduced in previous commit
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 16:11:03 +01:00
kim (grufwub)
ea39cf261d add more code commenting + remove unnecessary loop
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 16:09:31 +01:00
kim (grufwub)
ad5ce0bbe1 update set{uid,gid} code comment
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 16:05:40 +01:00
kim (grufwub)
c8d52c0989 add error responses, MAJOR bug fixes, privilege dropping, input sanitization, logging...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-10 16:01:07 +01:00
kim (grufwub)
d7844dde7c add support for handling SIGINT/SIGTERM
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-09 20:47:03 +01:00
kim (grufwub)
c9e2f48aa9 get code to working state
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-09 19:29:32 +01:00