A simple bookmarking service defined in the FlatBuffers IDL, and creation of gRPC server interfaces and client stubs. (bookmarks.fbs
)
A Protocol Buffers IDL has also been provided for comparison. (bookmarks.proto
)
flatc --go --grpc bookmarks.fbs
make compile
./server
./client last-added
./client add http://google.com Google
./client last-added
Run ./server
Run ./client
Setup flatc
:
- Download flatbuffers src via Github Releases
- Compile
flatc
. e.g.cmake -G"Unix Makefiles"
then runmake
go get google.golang.org/grpc