summaryrefslogtreecommitdiff
path: root/utils.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *.go: Update commentsRunxi Yu2024-10-091-4/+0
|
* *.go: Further wrap errorsRunxi Yu2024-10-081-1/+1
|
* *: Overhaul structure again and embed everythingRunxi Yu2024-10-061-0/+58
| | | | | | | | - Remove sub-Makefiles; recursive make is annoying - Just use one top-level Makefile that builds everything - Embed templates and minified static resources into the binary - Embed all compiled documentation into the binary and serve - Embed all source into the binary and serve
* *.go: Move to backendRunxi Yu2024-10-051-58/+0
| | | | And adjust Makefiles, admin handbook, and lint.sh accordingly.
* {main,utils,ws}.go: Initialize cancelPool directly tooRunxi Yu2024-10-051-3/+0
|
* {auth,utils,ws}.go: randomBytes -> randomStringRunxi Yu2024-10-021-1/+1
|
* utils.go, auth.go: Rename random to randomBytesRunxi Yu2024-09-301-1/+1
|
* ws.go, utils.go: Document some synchronization design choicesRunxi Yu2024-09-301-0/+3
| | | | Also use TryLock in setupChanPool, and fail when not successful.
* *: Change license to AGPL-3.0-or-laterRunxi Yu2024-09-301-21/+11
|
* utils.go: Better logging for wstr()Runxi Yu2024-09-301-1/+1
|
* *.go: Wrap errorsRunxi Yu2024-09-261-1/+2
|
* *.go: LintingRunxi Yu2024-09-241-3/+3
|
* utils.go: ReformatRunxi Yu2024-09-241-2/+2
|
* {index,utils,ws}.go: Handle write errorsRunxi Yu2024-09-241-1/+5
|
* {utils,auth,index,ws}.go: Handle errors in random number generationRunxi Yu2024-09-241-3/+6
|
* *.go: Add commentsRunxi Yu2024-09-091-0/+4
|
* *: Basic authentication and templatesRunxi Yu2024-09-071-0/+56
These are imported from FBFP and slightly modified to be specific to YKPS (while not being hard to port to other environments that use APIs that use OAUTH 2.0). Some code is also simplified. Database code still needs an audit, and things are not tested yet.