tuneliza
c21d51cc63
partial fill-in of tutorial
2016-12-05 16:50:26 -08:00
tuneliza
b8885df7c6
update usage file-tree example for middlewares
2016-12-05 15:06:05 -08:00
tuneliza
5d99a503cd
add tutorial outline
2016-12-05 14:47:17 -08:00
Adam Ryman
10246ad1b7
Update based on pull request feedback
2016-12-05 14:41:57 -08:00
Adam Ryman
2c5a6cddca
Merge pull request #102 from hasAdamr/just-middle
...
Endpoints and Service middleware injector templates and generator.
2016-12-05 13:54:19 -08:00
Adam Ryman
3bc9e6774e
Update based on pull request feedback
2016-12-05 13:51:56 -08:00
Adam Ryman
e1b335e09f
Add middleware tests and add additional comments
2016-12-05 12:49:11 -08:00
Adam Ryman
5493c9684f
Add middlewares with no overwrite
2016-12-05 12:49:11 -08:00
Adam Ryman
c1e136cda4
Merge pull request #104 from hasAdamr/move-handler-test
...
Move handler test
2016-12-05 12:25:18 -08:00
Adam Ryman
f7868d6a57
Merge pull request #105 from hasAdamr/move-example
...
Move example to _example for tests
2016-12-05 12:23:21 -08:00
Adam Ryman
521a955723
Move TestUpdateMethods to handler package for clarity
2016-12-05 12:22:35 -08:00
tuneliza
aaab47764b
edit usage doc
2016-12-05 12:17:10 -08:00
tuneliza
cdcc5d3520
Merge pull request #100 from hasLeland/port-env-vars-hotfix
...
Fix for ports not correctly handling null values
2016-12-02 20:06:04 -08:00
Adam Ryman
0652eefe21
Remove the truss.NamedReadWriter interface and truss.SimpleFile struct.
...
No functional change
This interface was originally because we hoped that os.File would satisfy this
interface, though the Name() method of os.File would not work correctly.
It is replaced with a map[string]io.Reader which represents a relative path on
disk to the service directory to file contents. It is used as the structure for
both reading in files and how code generating packages output files to write.
2016-12-02 17:51:05 -08:00
Adam Ryman
d5fb8866f1
Merge pull request #101 from hasAdamr/executor-rename
...
Refactor names and tests in preperation for middleware addition
2016-12-02 16:48:07 -08:00
Adam Ryman
9a05762dcb
Update based on pull request feedback
2016-12-02 16:46:00 -08:00
Adam Ryman
926895c623
Refactor names and tests in preperation for middleware addition
2016-11-28 05:37:00 -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
Leland Batey
a46947ae4b
Fix for ports not correctly handling null values
2016-11-23 15:11:12 -08:00
Adam Ryman
5924b77e11
Merge pull request #98 from branch 'tuneliza/master'
...
modify template to fix problem with only parts of the generated code recognizing vendored go-kit type
2016-11-22 19:20:14 -08:00
tuneliza
1db7bb7d10
modify template to fix problem with only parts of the generated code recognizing vendored go-kit type
2016-11-22 19:19:12 -08:00
Leland Batey
37d7e98a1b
Merge pull request #99 from hasLeland/address-envvars
...
Add support for setting server ports via environment variables
2016-11-22 13:30:34 -08:00
Leland Batey
1f8bdb846f
Add support for setting server ports via environment variables
2016-11-22 13:23:19 -08:00
Leland Batey
ece2060fa2
Merge pull request #97 from hasLeland/integration-readme-update
...
Update integration test readme
2016-11-22 11:03:09 -08:00
Leland Batey
c65c70ed0b
Update integration test readme
2016-11-22 10:53:08 -08:00
Adam Ryman
d525135616
Merge pull request #96 from hasAdamr/handler-warn-fix
...
Update handler to not warn about params of unexported funcs
2016-11-16 19:17:55 -08:00
Adam Ryman
afd9981cd4
Update handler to not warn about params of unexported funcs
2016-11-16 18:54:50 -08:00
Adam Ryman
06f121104b
Merge pull request #91 from hasAdamr/new-server-handler
...
New server handler parser; Checks receiver, updates ins and outs, ignores unexported funcs, with lots of tests!
2016-11-16 17:46:50 -08:00
Adam Ryman
97f7b0ff5b
Update based on pull request feedback
2016-11-16 17:36:56 -08:00
Adam Ryman
aa4159857a
Add updateParams and updateResults to handler; Update comments
2016-11-16 17:31:06 -08:00
Adam Ryman
34d224fde5
Add applyServerTempl and pruneDecls Tests
2016-11-16 17:31:06 -08:00
Adam Ryman
5cb3843d48
Move server_handler.gotemplate to handler pkg
2016-11-16 17:28:22 -08:00
Adam Ryman
bb97a3bf69
Add mRecvTypeString test and isValidFunc test
2016-11-16 17:03:55 -08:00
Adam Ryman
734532500a
Removing cliclient handlers from handler package as it no longer needs user updating
2016-11-16 17:03:55 -08:00
Adam Ryman
ad12210f6e
Update handler to check that receiver is correct
2016-11-16 17:03:55 -08:00
Adam Ryman
396200aa78
Update handler to render all methods if there was no previous file
2016-11-16 17:03:55 -08:00
Adam Ryman
652f0237a8
Refactor to remove side effects and increase testability
2016-11-16 17:03:55 -08:00
Adam Ryman
4d3fa1ff3e
Add start of handler test, add test method for comparing gocode
2016-11-16 17:03:55 -08:00
Adam Ryman
d65185a466
Update regeneration of handler file to not remove unexported functions
...
Removed astmodifier
Created handler which is now is responsible for updating handlers during
each truss regeneration
2016-11-16 17:03:55 -08:00
Adam Ryman
839a8306b5
Merge pull request #92 from hasAdamr/third_party
...
Fix issue #89 ; cannot use gen .pb.go from multiple services
2016-11-16 16:29:26 -08:00
Adam Ryman
29c1af86ab
Use all GOPATH's rather than just first
...
Using "go/build" for interacting with the GOPATH for the ServicePackage
and PBPackage.
Use all GOPATH's as imports for protoc to allow the user to install
google.golang.org/genproto in any GOPATH rather than just the first.
2016-11-16 16:24:14 -08:00
Leland Batey
6308b5e56d
Merge pull request #95 from hasLeland/caps-http-path
...
Fix broken requests for paths with capital letters
2016-11-16 16:21:48 -08:00
Leland Batey
e6f3295013
Fix broken requests for paths with capital letters
2016-11-16 14:23:42 -08:00
Adam Ryman
f33fe0d3b8
Merge pull request #93 from hasAdamr/encode-all-errors-json
...
Encode errors as json over http transport
2016-11-15 20:00:28 -08:00
Adam Ryman
e3896c4303
Update based on pull request feedback
2016-11-15 19:54:59 -08:00
Adam Ryman
ac6db9769e
Encode errors as json over http transport
2016-11-14 19:25:40 -08:00
Adam Ryman
71b1c153dc
Fix issue #89 ; cannot use gen .pb.go from multiple services
...
Switch from outputting third_party imports to using
google.golang.org/genproto for the http.proto and annotations.proto
This means that all generated services will import the same http.pb.go
and annotations.pb.go, fixing the problem of the proto library not
allowing for extensions to be imported from different locations
2016-11-14 16:02:09 -08:00
Leland Batey
46eedc16ba
Merge pull request #90 from hasLeland/cli-repeated-nov09
...
Get client arguments buildable with repeated types
2016-11-09 17:20:19 -08:00
Leland Batey
8cafd8a2a9
Merge pull request #89 from hasLeland/makefile-fix
...
Fix error in Makefile breaking `make testclean`
2016-11-09 17:20:08 -08:00
Leland Batey
7f4a66d382
Client arg gen usable with repeated types
2016-11-09 12:52:04 -08:00