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

341 Коммитов

Автор SHA1 Сообщение Дата
Adam Ryman c62491a111 Merge pull request #63 from hasAdamr/update-template.go
Update template.go and remove $ go generate from travis
2016-09-29 11:48:48 -07:00
Adam Ryman 0f3568ddf5 Merge pull request #60 from hasAdamr/http_transport_hotfix
Fix http transport panic
2016-09-28 18:49:43 -07:00
Adam Ryman 0e112f7704 Removing go generate from .travis to test commited changes
The versions of any generated file should be up to date in master,
running go generate on a freshly cloned version of truss should be a
noop. This allows for people to go get truss without running go generate
2016-09-28 17:17:50 -07:00
Adam Ryman 306e6ab086 Update go-bindata template.go 2016-09-28 17:15:08 -07:00
Adam Ryman 4ae630e85e Merge pull request #57 from hasAdamr/testing
Add deftree.NewFromString, Refactor gengokit. Add gengokit_test.go
2016-09-28 14:29:01 -07:00
Adam Ryman bf33ca3bbe Merge pull request #58 from hasAdamr/testing_dep
Update .travis to go get testing dependencies and run all tests
2016-09-28 13:46:27 -07:00
Adam Ryman 416bc95206 Update .travis to go get testing dependencies and run all tests 2016-09-28 13:41:03 -07:00
Adam Ryman ab8c29388e Fix http transport panic 2016-09-28 13:34:39 -07:00
Adam Ryman b3b46017f7 Updating based on pull request feedback 2016-09-28 13:16:28 -07:00
Adam Ryman 4a31e651e5 Add unit tests to gengokit.go 2016-09-23 16:52:28 -07:00
Adam Ryman 69f5a51329 Refactor gengokit.go
Improve cohesion and removing coupling. Use the io.Reader interface for
inputs and returns to improve composiblity which helps with testing.
Simpler functions for simpler tests.

Also combed the comments to help keep them fresh.
2016-09-23 16:52:18 -07:00
Adam Ryman fc8b2cb984 Add function to build deftree from string. Will be used for tests 2016-09-22 20:08:32 -07:00
Adam Ryman cbf0db7b0b Merge pull request #54 from hasAdamr/struct-pointers
Update server handlers to use pointers to pb structs
2016-09-17 12:13:32 -07:00
Leland Batey 216833b9ef Merge pull request #53 from hasLeland/fix-getsource-comments
Fix httptransport source-fetching not extracting comments
2016-09-16 18:32:38 -07:00
Adam Ryman a10a49346e Merge pull request #52 from hasAdamr/fix-regeneration
Fix server and client handler always being overwritten
2016-09-16 18:30:38 -07:00
Adam Ryman 2bd54542a3 Update server handlers to use pointers to pb structs
grpc golang structures were being dereferenced in endpoints.go then
passed to the server handlers, then the return value was being
referenced in endpoints.go and returned up the stack. Now the pointer
is directly passed to the server handler and the server handler returns
a pointer to the response type.

Also added listing the response type message fields as comments to the server
handler template. This allows for quickly creating a response struct by
uncommenting the fields you want to populate
2016-09-16 18:17:57 -07:00
Leland Batey 261986fd11 Fix source-fetching not extracting comments 2016-09-16 17:41:36 -07:00
Adam Ryman a010ff341d Fix server and client handler always being overwritten
A bug introduced when truss's output was restructured was that the
server and client handlers were not being parsed. This was a
combination of truss not reading in files properly and gengokit not
searching the read in files properly. These both have been fixed.

Also added parsing of comments of server and client handler which was
an early oversight
2016-09-16 17:40:00 -07:00
Leland Batey fa26a217d5 Merge pull request #51 from hasLeland/basicsvc-rename
Rename 'basicService' to have name of package
2016-09-16 15:09:43 -07:00
Leland Batey 588ee17942 Rename 'basicService' to have name of package 2016-09-16 14:26:33 -07:00
Adam Ryman 0c09638755 Merge pull request #50 from TuneLab/dev
Merge dev into master
2016-09-16 12:17:44 -07:00
Adam Ryman 93c58f4b35 Merge pull request #49 from hasAdamr/using-contract
Restructure truss's output to new file structure
2016-09-16 12:12:05 -07:00
Adam Ryman 242950a142 Restructure truss's output to new file structure
truss's output structure now looks like the following where NAME is the
package name of the definition file
.
├── NAME-service
│   ├── docs
│   │   └── docs.md
│   ├── generated
│   │   └── ...
│   ├── handlers
│   │   ├── client
│   │   │   └── client_handler.go
│   │   └── server
│   │       └── server_handler.go
│   ├── NAME-client
│   │   └── client_main.go
│   ├── NAME-server
│   │   └── server_main.go
│   └── svc.pb.go
├── svc.proto
└── third_party
    └── ...

Now go build ./... is possible from the root directory.

truss no longer builds the server or client.

These changes have been reflected in the integration_tests where the
integration runner now builds the services. See
./truss/integration_tests/README.md for more details

Add USAGE.md to root to describe the file modification agreement
2016-09-16 12:03:59 -07:00
Adam Ryman 3d39cb537d Merge pull request #48 from hasAdamr/travis-update
Update .travis.yml to use protoc binary
2016-09-14 13:36:44 -07:00
Adam Ryman 50d95582b8 Update .travis.yml to use protoc binary
Travis should now be more reliable as it no longer is using cache
It just grabs the protoc 3.0.0 binary and adds it to the path each time
2016-09-14 12:24:35 -07:00
Adam Ryman 95a72dd317 Merge pull request #45 from hasAdamr/issue#39
Update http_transport decode to handle 32bit types
2016-09-13 19:23:40 -07:00
Adam Ryman f24efc056b Update http_transport decode to handle 32bit types
http_transport decode now properly converts 32bit floats and int from
64bit types return from strconv. Fixes issue #39

This PR also handles uint32 and uint64 for http_transport decode and
client argument generation

Also updating .travis.yml to run tests ./deftree directory
2016-09-13 18:59:25 -07:00
Leland Batey 8b6fae32ea Merge pull request #44 from hasLeland/refactor-doctree-rebase
Refactor Doctree - Separate doc generation from definition structure
2016-09-13 12:15:44 -07:00
Leland Batey 42e1df257a Merge pull request #1 from hasAdamr/adam-refactor-doctree
Move svcparse to deftree
2016-09-13 12:10:56 -07:00
Adam Ryman 8ea47dad41 Move svcparse to deftree 2016-09-12 19:44:04 -07:00
Leland Batey 47bdb59480 Separate doc generation from definition structure
Consolidate makedt and httpopts into doctree

Move `doctree` from `gendoc/doctree` into a separate top level package
called `deftree`. Then, move generation of markdown documentation from
within `deftree` into `gendoc`.

Remove unused describeMarkdown methods in deftree

Remove unused scanner test
2016-09-12 11:37:15 -07:00
Ian Molee 2b514b141e Merge pull request #43 from cmosetick/master
Vetted that this still works as expected, and it does. Docker approach will change shortly, but this is definitely an improvement to reduce UFS layers. Next change will pull protobuf prebuilt binary as well, to avoid the lengthy and filesystem-pollutey build process.
2016-09-09 17:42:02 -07:00
Chris Mosetick aedd2b41a6 Dockerfile cleanup:
- point to master branch of GoogleMock to help with issue #42.
- remove redundant RUN commands / extraneous layers.
2016-09-09 13:56:57 -07:00
Zaq? Wiedmann 3116774f2f Merge pull request #38 from tunezaq/patch-1
Update travis ci button in readme
2016-08-22 19:05:22 -07:00
Adam Ryman 89426bcc85 Merge pull request #36 from hasAdamr/travis
Add travis-ci for automated testing
2016-08-22 18:48:33 -07:00
Zaq? Wiedmann 1187c2b58f Update travis ci button in readme
button needs to be pointing to TuneLab/master instead of dev fork
2016-08-22 18:48:10 -07:00
Adam Ryman b4e8a821a7 Add travis-ci for automated testing
The .travis.yml file has a few warts that we will need to deal with.

This is going to be very helpful for not breaking the build as we go
forward.
2016-08-22 18:12:46 -07:00
Leland Batey 1b3cb482dd Merge pull request #35 from hasLeland/default-protofiles-include
Add google-provided include files to work with binary protoc
2016-08-21 16:41:01 -07:00
Leland Batey ac22d44f13 Add google provided include files to work with binary protoc 2016-08-21 16:08:05 -07:00
Leland Batey 877c1ee7f2 Merge pull request #32 from hasLeland/doctree-markdown-cleanup
Fix bug with title of services, clean repeat code
2016-08-19 18:27:36 -07:00
Leland Batey 83533222ba Merge pull request #33 from hasLeland/readme-disclaimer
Add disclaimer to README.md
2016-08-19 17:48:04 -07:00
Leland Batey f1c75d1f23 Add disclaimer to README.md 2016-08-19 17:45:00 -07:00
Leland Batey 4cbbf9baf5 Fix bug with title of services, clean repeat code 2016-08-19 17:30:26 -07:00
Adam 2815f9b62c Merge pull request #31 from TuneLab/truss
Merge truss into master
2016-08-19 17:22:15 -07:00
Adam 938b5f884c Merge pull request #30 from hasLeland/truss
Merge `master` into `truss`
2016-08-19 17:16:12 -07:00
Leland Batey 6146ff794b Merge branch 'master' into truss 2016-08-19 17:03:53 -07:00
Leland Batey 054c8c4c32 Merge pull request #27 from hasLeland/truss
Modify files for repo name change
2016-08-19 16:50:41 -07:00
Leland Batey 7986dd53fd Modify files for repo name change 2016-08-19 16:43:46 -07:00
Leland Batey bf0ff904c5 Merge pull request #24 from hasLeland/http-transport-clean
Add HTTP transport
2016-08-19 14:47:05 -07:00
Leland Batey 91b97a95c4 Add HTTP transport
Add comments for pull request and golint
2016-08-19 14:40:55 -07:00