about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* added endpoint to query for all installed packagesBen Morrison2020-05-102-5/+37
|
* cleaned up cache.bap()Ben Morrison2020-05-091-16/+19
| | | | | | | added cache.insert() to handle locking cache and inserting a page. moved the check for / to the beginning to reduce unnecessary execution if it's just a request for the index.
* cache.bap() now returns an error rather than handling the error silentlyBen Morrison2020-05-092-8/+12
|
* fixed json formatting: removed leading space, added trailing newlineBen Morrison2020-05-093-9/+9
|
* removed index-specific cache checkingBen Morrison2020-05-091-34/+13
| | | | added index cache checking to cache.bap()
* removed race condition when checking if a page is nullBen Morrison2020-05-091-9/+6
| | | | | | will now lock for the duration of the null check. changed unNullPage(requestPath) to a method on the cacheWrapper type called checkedInit(requestPath) as this is more descriptive.
* cache.yoink(requestPath) now returns both the rawBen Morrison2020-05-092-17/+9
| | | | | | | | response body from the cache and the expiration time formatted as an rfc1123 datetime. added a default clause to cache.bap(requestPath) that responds with a failure state if an invalid query type has been requested.
* note to finish uptime queryBen Morrison2020-05-091-0/+1
|
* removed unneeded cache-checking function placeholdersBen Morrison2020-05-091-5/+0
|
* usercount query is doneBen Morrison2020-05-092-5/+26
|
* eliminated query-specific cache checking functionsBen Morrison2020-05-093-43/+62
| | | | stub for uptime, will have to adjust output later.
* consolidated osversion functions to osversion.goBen Morrison2020-05-092-26/+28
|
* eliminated discrete handler for index pageBen Morrison2020-05-091-27/+5
|
* consolidating functionality to a single handlerBen Morrison2020-05-094-37/+101
| | | | also, making cache interaction more generic.
* added makefileBen Morrison2020-05-081-0/+38
|
* moved endpoint files out of internal moduleBen Morrison2020-05-087-14/+12
|
* starting to structure cache checking for requestsBen Morrison2020-05-071-3/+27
|
* unifying cache checksBen Morrison2020-05-072-15/+28
|
* index page is cachingBen Morrison2020-05-072-2/+69
|
* tentative index pageBen Morrison2020-05-071-0/+28
|
* removed reference to etags - just using expires headersBen Morrison2020-05-071-3/+0
|
* added info about cached responses and changed display format of planned ↵Ben Morrison2020-05-071-10/+15
| | | | endpoints
* added handler for /Ben Morrison2020-05-071-0/+17
|
* 404 for favicon.icoBen Morrison2020-05-071-0/+3
|
* stubbing out endpointsBen Morrison2020-05-077-4/+95
|
* alphabetized endpointsBen Morrison2020-05-071-6/+7
|
* no need for go.sum if there's no dependenciesBen Morrison2020-05-061-1/+0
|
* minor change to checking if logfile closed properly on SIGINTBen Morrison2020-05-061-2/+1
|
* passing logfile close channel as paramBen Morrison2020-05-062-6/+6
|
* using file logging and catching SIGINT to cleanly shut downBen Morrison2020-05-062-2/+42
|
* ignoring log fileBen Morrison2020-05-061-0/+1
|
* one validation function that branches off. be easier to test later.Ben Morrison2020-05-062-13/+17
|
* stubbing out the HTTP serverBen Morrison2020-05-054-0/+137
| | | | | Right now it won't do much. Working on parsing the request and routing it to the right place.
* ignoring binaryBen Morrison2020-05-051-0/+1
|
* initBen Morrison2020-05-054-0/+56