Skip to content

Commit

Permalink
Merge branch master of github.com:openswoole/openswoole into master
Browse files Browse the repository at this point in the history
  • Loading branch information
doubaokun committed Dec 10, 2023
1 parent ca96087 commit ff23496
Show file tree
Hide file tree
Showing 28 changed files with 33 additions and 23 deletions.
1 change: 1 addition & 0 deletions src/BaseStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

use OpenSwoole\GRPC\Exception\GRPCException;
Expand Down
9 changes: 1 addition & 8 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

use OpenSwoole\Coroutine;
Expand Down Expand Up @@ -92,9 +93,6 @@ public function close()

/**
* Send message to remote endpoint, either end the stream or not depending on $mode of the client
* @param mixed $method
* @param mixed $message
* @param mixed $type
*/
public function send($method, $message, $type = 'proto')
{
Expand All @@ -116,8 +114,6 @@ public function send($method, $message, $type = 'proto')

/**
* Receive the data from a stream in the established connection based on streamId.
* @param mixed $streamId
* @param mixed $timeout
*/
public function recv($streamId, $timeout = -1)
{
Expand All @@ -126,9 +122,6 @@ public function recv($streamId, $timeout = -1)

/**
* Push message to the remote endpoint, used in client side streaming mode.
* @param mixed $streamId
* @param mixed $message
* @param mixed $type
* @param bool $end
*/
public function push($streamId, $message, $type = 'proto', $end = false)
Expand Down
1 change: 1 addition & 0 deletions src/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

final class ClientFactory
Expand Down
1 change: 1 addition & 0 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

interface ClientInterface
Expand Down
1 change: 1 addition & 0 deletions src/ClientPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

use co;
Expand Down
1 change: 1 addition & 0 deletions src/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

final class Constant
Expand Down
1 change: 1 addition & 0 deletions src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

use ArrayAccess;
Expand Down
1 change: 1 addition & 0 deletions src/ContextInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

interface ContextInterface
Expand Down
5 changes: 2 additions & 3 deletions src/Exception/ClientException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Exception;

class ClientException extends GRPCException
{
}
class ClientException extends GRPCException {}
1 change: 1 addition & 0 deletions src/Exception/GRPCException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Exception;

use OpenSwoole\GRPC\Status;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/InvokeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Exception;

use OpenSwoole\GRPC\Status;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Exception;

use OpenSwoole\GRPC\Status;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/ServiceException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Exception;

use OpenSwoole\GRPC\Status;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/UnimplementedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Exception;

use OpenSwoole\GRPC\Status;
Expand Down
1 change: 1 addition & 0 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

final class Message implements MessageInterface
Expand Down
5 changes: 2 additions & 3 deletions src/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

interface MessageInterface
{
}
interface MessageInterface {}
1 change: 1 addition & 0 deletions src/Middleware/LoggingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Middleware;

use OpenSwoole\Constant;
Expand Down
5 changes: 2 additions & 3 deletions src/Middleware/MiddlewareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Middleware;

interface MiddlewareInterface
{
}
interface MiddlewareInterface {}
1 change: 1 addition & 0 deletions src/Middleware/ServiceHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Middleware;

use OpenSwoole\GRPC\Constant;
Expand Down
1 change: 1 addition & 0 deletions src/Middleware/StackHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Middleware;

use OpenSwoole\GRPC\MessageInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Middleware/TraceMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC\Middleware;

use OpenSwoole\GRPC\MessageInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

final class Request implements MessageInterface
Expand Down
5 changes: 2 additions & 3 deletions src/RequestHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

interface RequestHandlerInterface
{
}
interface RequestHandlerInterface {}
1 change: 1 addition & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

final class Response implements MessageInterface
Expand Down
1 change: 1 addition & 0 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

use Closure;
Expand Down
1 change: 1 addition & 0 deletions src/ServiceContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

use Exception;
Expand Down
5 changes: 2 additions & 3 deletions src/ServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

interface ServiceInterface
{
}
interface ServiceInterface {}
1 change: 1 addition & 0 deletions src/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @link https://openswoole.com
* @contact [email protected]
*/

namespace OpenSwoole\GRPC;

final class Status
Expand Down

0 comments on commit ff23496

Please sign in to comment.