Commit Graph

15 Commits

Author SHA1 Message Date
Derek McGowan
fe03193c28 Add makefile and update protoc version
Use makefile and installation script for protoc.
Update protoc version to match containerd.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-03-04 18:17:11 -08:00
Kazuyoshi Kato
d240c5005f Use google.golang.org/protobuf instead of github.com/gogo/protobuf
This change replaces github.com/gogo/protobuf with
google.golang.org/protobuf, except for the code generators.

All proto-encoded structs are now generated from .proto files,
which include ttrpc.Request and ttrpc.Response.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2022-02-16 23:11:27 +00:00
Derek McGowan
f7a2e09ef8 Fix lint issues
Cleanup server test

Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-21 12:04:30 -08:00
Kazuyoshi Kato
35cd24038a Re-generate example.pb.go
It is different from what this repository would generate, probably
since 7c78be300b.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2021-10-25 18:37:10 -07:00
Kazuyoshi Kato
236899069c Make the example command buildable on macOS
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2021-05-21 17:13:14 -07:00
Michael Crosby
694de9d955 metadata as KeyValue type
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-06-13 18:06:27 +00:00
Michael Crosby
e409d7d775 Add example binary for testing the example service
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-06-12 19:37:43 +00:00
Michael Crosby
0690b20898 Add apache license to files
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-06-27 17:49:06 -04:00
Michael Crosby
4b957e7112 Update imports and references for containerd
This updates the references and imports for the move into the containerd
org.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-06-27 17:32:37 -04:00
Stephen J Day
2a81659f49
ttrpc: remove use of typeurl
Rather than employ the typeurl package, we now generate code to
correctly allocate the incoming types from the caller. As a side-effect
of this activity, the services definitions have been split out into a
separate type that handles the full resolution and dispatch of the
method, incuding correctly mapping the RPC status.

This work is a pre-cursor to larger protocol change that will allow us
to handle multiple, concurrent requests.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-21 18:03:52 -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
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
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