mirror of
https://github.com/dev993848/lastochka-messenger.git
synced 2026-05-23 13:45:50 +00:00
d266606297
- lastochka-server: removed nested .git, now browsable on GitHub - lastochka-ios: removed nested .git, now browsable on GitHub - lastochka-android: added (Kotlin + Jetpack Compose) - lastochka-desktop: added (Electron + React) - lastochka-android-compose: removed (replaced by lastochka-android) - lastochka-ui: updated to latest prototype - .gitignore: added .gradle/, Pods/, DerivedData/, local.properties Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Protocol Buffer and gRPC definitions
Definitions for Tinode gRPC client and plugins.
Tinode gRPC clients must implement rpc service Node, Tinode plugins Plugin.
Generated Go and Python code is included. For a sample Python implementation of a command line client see tn-cli.
For a partial plugin implementation see chatbot.
If you want to make changes, you have to install protobuffers tool chain and gRPC:
$ python -m pip install grpcio grpcio-tools googleapis-common-protos
To generate Go bindings add the following comment to your code and run go generate (your actual path to /pbx may be different):
//go:generate protoc --proto_path=../pbx --go_out=plugins=grpc:../pbx ../pbx/model.proto
To generate Python bindings:
python -m grpc_tools.protoc -I../pbx --python_out=. --grpc_python_out=. ../pbx/model.proto