this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(readme) add more output for run and test targets, update todo

eagleusb 8fec632a 9049bc77

+30 -12
+30 -12
README.md
··· 5 5 ## Quickstart 6 6 7 7 ```bash 8 - make run 8 + ❯ make run 9 + go build -ldflags "-s -w -X main.version=dev -X main.buildTime=2026-04-13T15:47:25Z" -trimpath -o bin/proxycon . 10 + ./bin/proxycon --verbose 11 + time=2026-04-13T17:47:29.254+02:00 level=INFO msg="http client request" method=GET url=https://europe-west1-bitstack-test.cloudfunctions.net/coding-challenge-v2 duration=3.230734651s code=200 12 + time=2026-04-13T17:47:29.971+02:00 level=INFO msg="loaded bitcoin prices from datasource" count=500000 13 + time=2026-04-13T17:47:29.971+02:00 level=INFO msg="starting proxycon" addr=:8080 page_size=10 version=dev 14 + time=2026-04-13T17:47:29.971+02:00 level=DEBUG msg="http server protocol" http1=true http2=true unencrypted=true 15 + time=2026-04-13T17:47:31.641+02:00 level=INFO msg="http request" method=GET path=/list code=200 duration=57.537µs remote=127.0.0.1:44574 16 + time=2026-04-13T17:47:31.645+02:00 level=INFO msg="http request" method=GET path=/price code=200 duration=24.363µs remote=127.0.0.1:44586 17 + time=2026-04-13T17:47:31.650+02:00 level=INFO msg="http request" method=GET path=/price code=404 duration=1.31138ms remote=127.0.0.1:44598 18 + time=2026-04-13T17:47:31.673+02:00 level=INFO msg="http request" method=GET path=/average code=200 duration=17.398744ms remote=127.0.0.1:44614 9 19 ``` 10 20 11 21 ```bash 12 - make test 22 + ❯ make test 23 + > /list 24 + { 25 + "start": "2021-11-19T12:22:51Z", 26 + "end": "2021-11-19T12:52:51Z", 27 + "min": "5421868", 28 + "max": "9800821", 29 + "next_cursor": 10, 30 + ... 13 31 ``` 14 32 15 33 ## TODO 16 34 17 35 ### Planned 18 36 19 - - [] add stateful cache (bbolt, leveldb, or httpcache...) for bitcoin prices datasource (fetchPrices) 20 - - [] add upstream datasource req logging (meter if >=5ms) 37 + - [x] add upstream datasource req logging (meter if >=5ms) 21 38 22 39 ### Postponed 23 40 24 - - [] add goreleaser with arm support (in addition to amd64 arch) 25 - - [] use Huma on top of net/http (OpenAPI, standardization) 26 - - [] event streaming to client (SSE, or websocket, or gRPC) 27 - - [] write real tests (testify...) 28 - - [] add programmatic benchmark 29 - - [] add logging OTLP export capability 30 - - [] add `/health` endpoint 31 - - [] add `/metrics` endpoint (prometheus gauges) 41 + - [ ] add stateful cache (bbolt, leveldb, or httpcache...) for bitcoin prices datasource (fetchPrices) 42 + - [ ] add goreleaser with arm support (in addition to amd64 arch) 43 + - [ ] use Huma on top of net/http (OpenAPI, standardization) 44 + - [ ] event streaming to client (SSE, or websocket, or gRPC) 45 + - [ ] write real tests (testify...) 46 + - [ ] add programmatic benchmark 47 + - [ ] add logging OTLP export capability 48 + - [ ] add `/health` endpoint 49 + - [ ] add `/metrics` endpoint (prometheus gauges)