Commit Graph

9 Commits

Author SHA1 Message Date
d995f7d182 test: replace hand-written mocks with gomock (#63) 2021-05-06 10:19:41 -04:00
f95668ada6 refactor: improve codegen to support influx query rewrite (#60)
* build: add goimports to fmt target to remove unused imports
* feat: update codegen template to support returning raw response body
* feat: add support for gunzip-ing response bodies
* refactor: remove unused piece from codegen return values
2021-05-05 10:30:22 -04:00
7f5542c119 refactor: inject trace ID as a default header (#50) 2021-04-27 17:21:37 -04:00
73dc5ef63b feat(api): improve codegen outputs (#41)
* Use `[]byte` for generated request bodies when the source schema has `format: byte`
* Gzip-compress request bodies when `Content-Encoding: gzip` is set
* Require that all models returned as error conditions in our API implement the `error` interface
* Move the implementation for `api.HealthCheck` out of `ping.go` and into `api/error.go`


Co-authored-by: William Baker <55118525+wbaker85@users.noreply.github.com>
2021-04-26 10:10:45 -04:00
cf30ec4345 refactor: move mock APIs and services into mock module (#39) 2021-04-26 09:51:27 -04:00
68ad797ab7 feat: port influx setup from influxdb (#35) 2021-04-22 09:46:15 -04:00
079f707c21 refactor: replace bash hacks with custom templates (#34) 2021-04-19 15:51:53 -04:00
4f62e469e9 refactor: switch to OpenAPITools's generator for our HTTP clients (#33)
* build: add CI job to check OpenAPI generation is clean
* feat: add hidden flag for HTTP debug
2021-04-16 17:16:58 -04:00
ca8a5c5364 feat: implement ping command (#31)
* build: use deepmap/oapi-codegen to generate an HTTP client
* feat: add global CLI options
* feat: load local config to find host and token
* feat: implement ping command
* test: add unit tests for ping command
2021-04-14 09:31:21 -04:00