GRPC PHP  1.83.0
Data Structures | Variables
Grpc Namespace Reference

Class AbstractCall. More...

Data Structures

class  AbstractCall
 
class  BaseStub
 Base class for generated client stubs. More...
 
class  BidiStreamingCall
 Represents an active call that allows for sending and receiving messages in streams in any order. More...
 
class  Call
 class Call More...
 
class  CallCredentials
 class CallCredentials More...
 
interface  CallInvoker
 CallInvoker is used to pass the self defined channel into the stub, while intercept each RPC with the channel accessible. More...
 
class  Channel
 class Channel More...
 
class  ChannelCredentials
 class ChannelCredentials More...
 
class  ClientStreamingCall
 Represents an active call that sends a stream of messages and then gets a single response. More...
 
class  DefaultCallInvoker
 Default call invoker in the gRPC stub. More...
 
class  Interceptor
 Represents an interceptor that intercept RPC invocations before call starts. More...
 
class  MethodDescriptor
 This is an experimental and incomplete implementation of gRPC server for PHP. More...
 
class  RpcServer
 
class  Server
 class Server More...
 
class  ServerCallReader
 This is an experimental and incomplete implementation of gRPC server for PHP. More...
 
class  ServerCallWriter
 This is an experimental and incomplete implementation of gRPC server for PHP. More...
 
class  ServerContext
 This is an experimental and incomplete implementation of gRPC server for PHP. More...
 
class  ServerCredentials
 class ServerCredentials More...
 
class  ServerStreamingCall
 Represents an active call that sends a single message and then gets a stream of responses. More...
 
class  Status
 
class  Timeval
 class Timeval More...
 
class  UnaryCall
 Represents an active call that sends a single message and then gets a single response. More...
 

Variables

const CALL_OK
 everything went ok More...
 
const CALL_ERROR
 something failed, we don't know what More...
 
const CALL_ERROR_NOT_ON_SERVER
 this method is not available on the server More...
 
const CALL_ERROR_NOT_ON_CLIENT
 this method is not available on the client More...
 
const CALL_ERROR_ALREADY_INVOKED
 this method must be called before invoke More...
 
const CALL_ERROR_NOT_INVOKED
 this method must be called after invoke More...
 
const CALL_ERROR_ALREADY_FINISHED
 this call is already finished (writes_done or write_status has already been called) More...
 
const CALL_ERROR_TOO_MANY_OPERATIONS
 there is already an outstanding read/write operation on the call More...
 
const CALL_ERROR_INVALID_FLAGS
 the flags value was illegal for this call More...
 
const WRITE_BUFFER_HINT
 Hint that the write may be buffered and need not go out on the wire immediately. More...
 
const WRITE_NO_COMPRESS
 Force compression to be disabled for a particular write (start_write/add_metadata). More...
 
const STATUS_OK
 Not an error; returned on success. More...
 
const STATUS_CANCELLED
 The operation was cancelled (typically by the caller). More...
 
const STATUS_UNKNOWN
 Unknown error. More...
 
const STATUS_INVALID_ARGUMENT
 Client specified an invalid argument. More...
 
const STATUS_DEADLINE_EXCEEDED
 Deadline expired before operation could complete. More...
 
const STATUS_NOT_FOUND
 Some requested entity (e.g., file or directory) was not found. More...
 
const STATUS_ALREADY_EXISTS
 Some entity that we attempted to create (e.g., file or directory) already exists. More...
 
const STATUS_PERMISSION_DENIED
 The caller does not have permission to execute the specified operation. More...
 
const STATUS_UNAUTHENTICATED
 The request does not have valid authentication credentials for the operation. More...
 
const STATUS_RESOURCE_EXHAUSTED
 Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. More...
 
const STATUS_FAILED_PRECONDITION
 Operation was rejected because the system is not in a state required for the operation's execution. More...
 
const STATUS_ABORTED
 The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc. More...
 
const STATUS_OUT_OF_RANGE
 Operation was attempted past the valid range. More...
 
const STATUS_UNIMPLEMENTED
 Operation is not implemented or not supported/enabled in this service. More...
 
const STATUS_INTERNAL
 Internal errors. More...
 
const STATUS_UNAVAILABLE
 The service is currently unavailable. More...
 
const STATUS_DATA_LOSS
 Unrecoverable data loss or corruption. More...
 
const OP_SEND_INITIAL_METADATA
 Send initial metadata: one and only one instance MUST be sent for each call, unless the call was cancelled - in which case this can be skipped. More...
 
const OP_SEND_MESSAGE
 Send a message: 0 or more of these operations can occur for each call. More...
 
const OP_SEND_CLOSE_FROM_CLIENT
 Send a close from the client: one and only one instance MUST be sent from the client, unless the call was cancelled - in which case this can be skipped. More...
 
const OP_SEND_STATUS_FROM_SERVER
 Send status from the server: one and only one instance MUST be sent from the server unless the call was cancelled - in which case this can be skipped. More...
 
const OP_RECV_INITIAL_METADATA
 Receive initial metadata: one and only one MUST be made on the client, must not be made on the server. More...
 
const OP_RECV_MESSAGE
 Receive a message: 0 or more of these operations can occur for each call. More...
 
const OP_RECV_STATUS_ON_CLIENT
 Receive status on the client: one and only one must be made on the client. More...
 
const OP_RECV_CLOSE_ON_SERVER
 Receive close on the server: one and only one must be made on the server. More...
 
const CHANNEL_IDLE
 channel is idle More...
 
const CHANNEL_CONNECTING
 channel is connecting More...
 
const CHANNEL_READY
 channel is ready for work More...
 
const CHANNEL_TRANSIENT_FAILURE
 channel has seen a failure but expects to recover More...
 
const CHANNEL_FATAL_FAILURE
 channel has seen a failure that it cannot recover from More...
 

Detailed Description

Class AbstractCall.

This is an experimental and incomplete implementation of gRPC server for PHP.

APIs are definitely going to be changed.

DO NOT USE in production. Class RpcServer

APIs are definitely going to be changed.

DO NOT USE in production. Class Status

Variable Documentation

◆ CALL_ERROR

const Grpc\CALL_ERROR

something failed, we don't know what

◆ CALL_ERROR_ALREADY_FINISHED

const Grpc\CALL_ERROR_ALREADY_FINISHED

this call is already finished (writes_done or write_status has already been called)

◆ CALL_ERROR_ALREADY_INVOKED

const Grpc\CALL_ERROR_ALREADY_INVOKED

this method must be called before invoke

◆ CALL_ERROR_INVALID_FLAGS

const Grpc\CALL_ERROR_INVALID_FLAGS

the flags value was illegal for this call

◆ CALL_ERROR_NOT_INVOKED

const Grpc\CALL_ERROR_NOT_INVOKED

this method must be called after invoke

◆ CALL_ERROR_NOT_ON_CLIENT

const Grpc\CALL_ERROR_NOT_ON_CLIENT

this method is not available on the client

◆ CALL_ERROR_NOT_ON_SERVER

const Grpc\CALL_ERROR_NOT_ON_SERVER

this method is not available on the server

◆ CALL_ERROR_TOO_MANY_OPERATIONS

const Grpc\CALL_ERROR_TOO_MANY_OPERATIONS

there is already an outstanding read/write operation on the call

◆ CALL_OK

const Grpc\CALL_OK

everything went ok

◆ CHANNEL_CONNECTING

const Grpc\CHANNEL_CONNECTING

channel is connecting

◆ CHANNEL_FATAL_FAILURE

const Grpc\CHANNEL_FATAL_FAILURE

channel has seen a failure that it cannot recover from

◆ CHANNEL_IDLE

const Grpc\CHANNEL_IDLE

channel is idle

◆ CHANNEL_READY

const Grpc\CHANNEL_READY

channel is ready for work

◆ CHANNEL_TRANSIENT_FAILURE

const Grpc\CHANNEL_TRANSIENT_FAILURE

channel has seen a failure but expects to recover

◆ OP_RECV_CLOSE_ON_SERVER

const Grpc\OP_RECV_CLOSE_ON_SERVER

Receive close on the server: one and only one must be made on the server.

This op completes after the close has been received by the server. This operation always succeeds, meaning ops paired with this operation will also appear to succeed, even though they may not have.

◆ OP_RECV_INITIAL_METADATA

const Grpc\OP_RECV_INITIAL_METADATA

Receive initial metadata: one and only one MUST be made on the client, must not be made on the server.

This op completes after all initial metadata has been read from the peer.

◆ OP_RECV_MESSAGE

const Grpc\OP_RECV_MESSAGE

Receive a message: 0 or more of these operations can occur for each call.

This op completes after all bytes of the received message have been read, or after a half-close has been received on this call.

◆ OP_RECV_STATUS_ON_CLIENT

const Grpc\OP_RECV_STATUS_ON_CLIENT

Receive status on the client: one and only one must be made on the client.

This operation always succeeds, meaning ops paired with this operation will also appear to succeed, even though they may not have. In that case the status will indicate some failure. This op completes after all activity on the call has completed.

◆ OP_SEND_CLOSE_FROM_CLIENT

const Grpc\OP_SEND_CLOSE_FROM_CLIENT

Send a close from the client: one and only one instance MUST be sent from the client, unless the call was cancelled - in which case this can be skipped.

This op completes after all bytes for the call (including the close) have passed outgoing flow control.

◆ OP_SEND_INITIAL_METADATA

const Grpc\OP_SEND_INITIAL_METADATA

Send initial metadata: one and only one instance MUST be sent for each call, unless the call was cancelled - in which case this can be skipped.

This op completes after all bytes of metadata have been accepted by outgoing flow control.

◆ OP_SEND_MESSAGE

const Grpc\OP_SEND_MESSAGE

Send a message: 0 or more of these operations can occur for each call.

This op completes after all bytes for the message have been accepted by outgoing flow control.

◆ OP_SEND_STATUS_FROM_SERVER

const Grpc\OP_SEND_STATUS_FROM_SERVER

Send status from the server: one and only one instance MUST be sent from the server unless the call was cancelled - in which case this can be skipped.

This op completes after all bytes for the call (including the status) have passed outgoing flow control.

◆ STATUS_ABORTED

const Grpc\STATUS_ABORTED

The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.

See litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.

◆ STATUS_ALREADY_EXISTS

const Grpc\STATUS_ALREADY_EXISTS

Some entity that we attempted to create (e.g., file or directory) already exists.

◆ STATUS_CANCELLED

const Grpc\STATUS_CANCELLED

The operation was cancelled (typically by the caller).

◆ STATUS_DATA_LOSS

const Grpc\STATUS_DATA_LOSS

Unrecoverable data loss or corruption.

◆ STATUS_DEADLINE_EXCEEDED

const Grpc\STATUS_DEADLINE_EXCEEDED

Deadline expired before operation could complete.

For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.

◆ STATUS_FAILED_PRECONDITION

const Grpc\STATUS_FAILED_PRECONDITION