Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
kainoaseto a34fe64e43 Fix old truss reference in example proto file 2019-01-24 11:40:13 -08:00
Ross d121474ea7
example: update migrated repo reference 2018-05-19 22:25:57 +01:00
Adam Ryman e55947d944
Add support for custom HTTP verbs - COPY OF #230 (#243)
* Implement parsing of custom verbs from proto file

* Implement interpretation of custom HTTP verbs

* Extend doc generation to support custom HTTP verbs

* Improve parser error creation ergonomics

* Add custom HTTP verb cli integration test

* Add HTTP transport integration test for custom verbs
2017-11-06 15:38:56 -08:00
Adam Ryman 451bc80c4d Update example with additional binding and trailing slash example (#220) 2017-08-02 12:58:47 -07:00
Paul Nicholls d7dde28e2c Move to Gorilla Mux (#210)
* Move to Gorilla Mux in order to support mutliple HTTP verbs (i.e. GET and POST) on the same path

Gorilla Mux also handles path params for us, so we no longer need to process them ourselves.

* Add "LouderGet" RPC to _example/echo.proto to demo multiple HTTP verbs on the same path

* Update tests to match what we expect after moving to Gorilla Mux

Removed tests for funcs which have been removed; updated expected output from GenServerDecode

* Add github.com/gorilla/mux to vendor

* Use upper-case HTTP verbs in generated HTTP client

* Remove TestGetWithPathParamsRequest_IncompletePath

This test is now redundant, as it's testing behaviour which should already be tested sufficiently by Gorrila Mux
2017-07-26 22:09:35 -07:00
Leland Batey d855c11468 Update truss urls to the new repo location 2017-07-11 12:53:28 -07:00
Adam Ryman eb6fc21c66 Move example LabeledMiddleware out of generated code (#187)
* Move example labeled middleware to _example

* Rename handler to endpoint in endpoints.go

* Export example middlewares

* Rename RequestLatency to Latency
2017-05-29 19:21:02 -07:00
Zaq? Wiedmann d292cd517e Bundle httpoptions protos with googlethirdparty code
- Remove dependency on github.com/TuneLab/go-genproto/ (fork)
- Includes licensing for Apache 2.0 compliance
2017-01-20 17:43:51 -08:00
Leland Batey 875db65c13 Move everything to the new genproto location 2016-12-16 17:20:53 -08:00
Adam Ryman 67fd294675 Move example to _example for tests
If ./example/ has code non compilable code in it from a truss run, then
go test ./... will exit non 0 from this code failing to build. This is
annoying when testing truss on the example and then trying to rerun the
tests. This fixes it by adding the _ to avoid go's tooling
2016-11-28 05:12:15 -08:00