Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added endpoint to query for all installed packages | Ben Morrison | 2020-05-10 | 2 | -5/+37 |
| | |||||
* | cleaned up cache.bap() | Ben Morrison | 2020-05-09 | 1 | -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 silently | Ben Morrison | 2020-05-09 | 2 | -8/+12 |
| | |||||
* | fixed json formatting: removed leading space, added trailing newline | Ben Morrison | 2020-05-09 | 3 | -9/+9 |
| | |||||
* | removed index-specific cache checking | Ben Morrison | 2020-05-09 | 1 | -34/+13 |
| | | | | added index cache checking to cache.bap() | ||||
* | removed race condition when checking if a page is null | Ben Morrison | 2020-05-09 | 1 | -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 raw | Ben Morrison | 2020-05-09 | 2 | -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 query | Ben Morrison | 2020-05-09 | 1 | -0/+1 |
| | |||||
* | removed unneeded cache-checking function placeholders | Ben Morrison | 2020-05-09 | 1 | -5/+0 |
| | |||||
* | usercount query is done | Ben Morrison | 2020-05-09 | 2 | -5/+26 |
| | |||||
* | eliminated query-specific cache checking functions | Ben Morrison | 2020-05-09 | 3 | -43/+62 |
| | | | | stub for uptime, will have to adjust output later. | ||||
* | consolidated osversion functions to osversion.go | Ben Morrison | 2020-05-09 | 2 | -26/+28 |
| | |||||
* | eliminated discrete handler for index page | Ben Morrison | 2020-05-09 | 1 | -27/+5 |
| | |||||
* | consolidating functionality to a single handler | Ben Morrison | 2020-05-09 | 4 | -37/+101 |
| | | | | also, making cache interaction more generic. | ||||
* | added makefile | Ben Morrison | 2020-05-08 | 1 | -0/+38 |
| | |||||
* | moved endpoint files out of internal module | Ben Morrison | 2020-05-08 | 7 | -14/+12 |
| | |||||
* | starting to structure cache checking for requests | Ben Morrison | 2020-05-07 | 1 | -3/+27 |
| | |||||
* | unifying cache checks | Ben Morrison | 2020-05-07 | 2 | -15/+28 |
| | |||||
* | index page is caching | Ben Morrison | 2020-05-07 | 2 | -2/+69 |
| | |||||
* | tentative index page | Ben Morrison | 2020-05-07 | 1 | -0/+28 |
| | |||||
* | removed reference to etags - just using expires headers | Ben Morrison | 2020-05-07 | 1 | -3/+0 |
| | |||||
* | added info about cached responses and changed display format of planned ↵ | Ben Morrison | 2020-05-07 | 1 | -10/+15 |
| | | | | endpoints | ||||
* | added handler for / | Ben Morrison | 2020-05-07 | 1 | -0/+17 |
| | |||||
* | 404 for favicon.ico | Ben Morrison | 2020-05-07 | 1 | -0/+3 |
| | |||||
* | stubbing out endpoints | Ben Morrison | 2020-05-07 | 7 | -4/+95 |
| | |||||
* | alphabetized endpoints | Ben Morrison | 2020-05-07 | 1 | -6/+7 |
| | |||||
* | no need for go.sum if there's no dependencies | Ben Morrison | 2020-05-06 | 1 | -1/+0 |
| | |||||
* | minor change to checking if logfile closed properly on SIGINT | Ben Morrison | 2020-05-06 | 1 | -2/+1 |
| | |||||
* | passing logfile close channel as param | Ben Morrison | 2020-05-06 | 2 | -6/+6 |
| | |||||
* | using file logging and catching SIGINT to cleanly shut down | Ben Morrison | 2020-05-06 | 2 | -2/+42 |
| | |||||
* | ignoring log file | Ben Morrison | 2020-05-06 | 1 | -0/+1 |
| | |||||
* | one validation function that branches off. be easier to test later. | Ben Morrison | 2020-05-06 | 2 | -13/+17 |
| | |||||
* | stubbing out the HTTP server | Ben Morrison | 2020-05-05 | 4 | -0/+137 |
| | | | | | Right now it won't do much. Working on parsing the request and routing it to the right place. | ||||
* | ignoring binary | Ben Morrison | 2020-05-05 | 1 | -0/+1 |
| | |||||
* | init | Ben Morrison | 2020-05-05 | 4 | -0/+56 |