1
0
Commit Graph

366 Commits

Author SHA1 Message Date
9955e3cd28
Updated ConvertFileSize(). Added TiB suffix. 2022-02-07 04:48:33 +04:00
db361bb509
Prefix replaced by Suffix. Added NetworkType(). 2022-02-07 04:48:00 +04:00
c5e9b48de7
Changed config struct. 2022-02-07 04:47:26 +04:00
48545f0781
Changed config format. 2022-02-07 04:47:07 +04:00
65ed3ec924
Updated ServeStatic and GET file request handler and path. 2022-02-07 04:46:46 +04:00
d4e7a7fa25
Fixed flags parsing. Added more handlers. 2022-02-06 15:25:27 +04:00
5f9485fe3c
Added ServeStatic() method. GetURLParams now returns parameter itself, and renamed to GetURLParam. 2022-02-06 15:24:37 +04:00
8341fba20f
Utility for my infrastructure. Added MainSite function. 2022-02-06 15:23:32 +04:00
bc83e033a1
Added Amber template engine. 2022-02-06 15:22:37 +04:00
041fcdf2f4
-config option changed to -conf. 2022-02-06 15:22:14 +04:00
9b5ae547cc
Snake case to camel case. Fixed argument parsing. Added a statistics log line to tell how much files gets deleted. 2022-02-06 03:03:01 +04:00
10a64306a3
Snake case to camel case. 2022-02-06 03:01:16 +04:00
71c3eb56b6
Utility function to convert size ib bytes to its corresponding biggest unit. 2022-02-06 03:00:32 +04:00
bf4f41c85e
Added .gitignore, .keep file to preserve bin directory and go.sum file. 2022-02-06 02:28:33 +04:00
8f9f4f0e30
Added use of configuratuin param KeepForHours to decide if file is to be deleted. 2022-02-06 02:26:55 +04:00
d4852ee6dd
Initial commit. 2022-02-06 02:22:23 +04:00