summaryrefslogtreecommitdiff
path: root/tests/plugins/grpc/testdata/simple/TestSimple
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-07 18:12:26 +0300
committerValery Piashchynski <[email protected]>2021-09-07 18:12:26 +0300
commit2f41909aeb6a01ae1a0b5ebabe9a9afc1360744a (patch)
tree9609019ad2ba4b6ae3a241aa5e6f68872b89feaf /tests/plugins/grpc/testdata/simple/TestSimple
parent6749db4a2d39fa70b426bcf50edf66a176c07f57 (diff)
Initial commit for the GRPC plugin
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/grpc/testdata/simple/TestSimple')
-rw-r--r--tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php b/tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php
new file mode 100644
index 00000000..f9e84bf7
--- /dev/null
+++ b/tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php
@@ -0,0 +1,22 @@
+<?php
+# Generated by the protocol buffer compiler (spiral/php-grpc). DO NOT EDIT!
+# source: simple/simple.proto
+
+namespace TestSimple;
+
+use Spiral\GRPC;
+
+interface SimpleServiceInterface extends GRPC\ServiceInterface
+{
+ // GRPC specific service name.
+ public const NAME = "testSimple.SimpleService";
+
+ /**
+ * @param GRPC\ContextInterface $ctx
+ * @param SimpleMessage $in
+ * @return SimpleMessage
+ *
+ * @throws GRPC\Exception\InvokeException
+ */
+ public function SimpleMethod(GRPC\ContextInterface $ctx, SimpleMessage $in): SimpleMessage;
+}