Commit Graph

15 Commits

Author SHA1 Message Date
Stephen J Day
d7306a0f0b
README: clarifications and TODOs
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 18:32:08 -08:00
Stephen J Day
809ed493d8
ttrpc: remove unused imports
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:28:18 -08:00
Stephen J Day
bd8c759c72
ttrpc: update examples after name change
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:09:36 -08:00
Stephen J Day
f147d6ca77
ttrpc: rename project to ttrpc
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:04:16 -08:00
Stephen J Day
1bfe6fb8f6
mgrpc: address error on accept
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:02:44 -08:00
Stephen J Day
52978c11e8
mgrpc: decrease size of channel buffers
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:01:30 -08:00
Stephen J Day
484a09bfa0
mgrpc: fill out client generation functionality
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:00:35 -08:00
Stephen J Day
76ad1535fb
README: explain differences with grpc
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 16:58:33 -08:00
Stephen J Day
f32bbe9f11
mgrpc: generate first example service
With this changeset, we have the first end to end generated server and
client. Most of the necessary types are in place and working. There are
a lot of details to work out, but this would be enough for to exercise
the end to end flow.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-14 18:56:09 -08:00
Stephen J Day
71e9170d05
mgrpc: mock out workflow for generated code
The server unit test now manually mocks much of the generated code for a
given service, including back registration of the service. We avoid
having a package-level global descriptor in favor of a closures for the
handler dispatch function.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-14 18:23:40 -08:00
Stephen J Day
538d13ce1b
README: update overview of project and provide usage
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-14 13:12:30 -08:00
Stephen J Day
42ff40f1f1
mgrpc: initial implementation of server
With this change, we define a simple server and client framework to
start generating code against. We define a simple handler system with
back registration into the server definition.

From here, we can start generating code against the handlers.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-14 12:18:06 -08:00
Stephen J Day
789a1bff64
mgrpc: initial implementation of message channel
A varint prefixed framing format is defined for transport messages for
mgrpc. We may make changes to include a more structured frame, but this
initial work can be used to validate the concepts.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-14 12:04:48 -08:00
Stephen J Day
eb6cfbbf53
mgrpc: baseline protobuf example
Set the stage for the example server by including a service definition,
generated code and the protobuild definition file used to generate them.
From here, we can work up to a generated mgrpc server.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-14 12:02:25 -08:00
Stephen Day
96ea8b3be5
Initial commit 2017-11-13 14:12:46 -08:00