Namespaces | |
aio | |
binder | |
gevent | |
session_cache | |
Typedefs | |
template<class Request , class Response > | |
using | ServerBidiReactor = ::grpc::ServerBidiReactor< Request, Response > |
Variables | |
tuple | __all__ |
_EXPERIMENTAL_APIS_USED = set() | |
_insecure_channel_credentials | |
static internal::GrpcLibraryInitializer | g_gli_initializer |
ClientRpcInfo represents the state of a particular RPC as it appears to an interceptor. It is created and owned by the library and passed to the CreateClientInterceptor method of the application's ClientInterceptorFactoryInterface implementation
using grpc::experimental::ServerBidiReactor = typedef ::grpc::ServerBidiReactor<Request, Response> |
Definition at line 793 of file impl/codegen/server_callback.h.
|
strong |
An enumeration of different possible points at which the Intercept method of the Interceptor interface may be called. Any given call to Intercept will include one or more of these hook points, and each hook point makes certain types of information available to the interceptor. In these enumeration names, PRE_SEND means that an interception has taken place between the time the application provided a certain type of data (e.g., initial metadata, status) and the time that that data goes to the other side. POST_SEND means that the data has been committed for going to the other side (even if it has not yet been received at the other side). PRE_RECV means an interception between the time that a certain operation has been requested and it is available. POST_RECV means that a result is available but has not yet been passed back to the application. A batch of interception points will only contain either PRE or POST hooks but not both types. For example, a batch with PRE_SEND hook points will not contain POST_RECV or POST_SEND ops. Likewise, a batch with POST_* ops can not contain PRE_* ops.
Enumerator | |
---|---|
PRE_SEND_INITIAL_METADATA | The first three in this list are for clients and servers. |
PRE_SEND_MESSAGE | |
POST_SEND_MESSAGE | |
PRE_SEND_STATUS | |
PRE_SEND_CLOSE | |
PRE_RECV_INITIAL_METADATA | The following three are for hijacked clients only. A batch with PRE_RECV_* hook points will never contain hook points of other types. |
PRE_RECV_MESSAGE | |
PRE_RECV_STATUS | |
POST_RECV_INITIAL_METADATA | The following two are for all clients and servers. |
POST_RECV_MESSAGE | |
POST_RECV_STATUS | |
POST_RECV_CLOSE | |
PRE_SEND_CANCEL | This is a special hook point available to both clients and servers when TryCancel() is performed.
|
NUM_INTERCEPTION_HOOKS |
Definition at line 59 of file impl/codegen/interceptor.h.
|
private |
Definition at line 63 of file src/python/grpcio/grpc/experimental/__init__.py.
grpc::Status grpc::experimental::AltsClientAuthzCheck | ( | const std::shared_ptr< const AuthContext > & | auth_context, |
const std::vector< std::string > & | expected_service_accounts | ||
) |
Definition at line 69 of file alts_util.cc.
std::shared_ptr< ChannelCredentials > grpc::experimental::AltsCredentials | ( | const AltsCredentialsOptions & | options | ) |
Builds ALTS Credentials given ALTS specific options.
Definition at line 294 of file secure_credentials.cc.
std::shared_ptr< ServerCredentials > grpc::experimental::AltsServerCredentials | ( | const AltsServerCredentialsOptions & | options | ) |
Builds ALTS ServerCredentials given ALTS specific options.
Builds Local ServerCredentials.
Definition at line 136 of file secure_server_credentials.cc.
std::shared_ptr< ServerCredentials > grpc::experimental::BinderServerCredentials | ( | std::shared_ptr< grpc::experimental::binder::SecurityPolicy > | security_policy | ) |
EXPERIMENTAL Builds Binder ServerCredentials.
This should be used along with binder:
URI scheme. The path in the URI can later be used to access the server's endpoint binder. Note that calling ServerBuilder::AddListeningPort() with Binder ServerCredentials in a non-supported environment will make the subsequent call to ServerBuilder::BuildAndStart() return a null pointer.
Definition at line 66 of file binder_server_credentials.cc.
void grpc::experimental::ChannelResetConnectionBackoff | ( | Channel * | channel | ) |
Resets the channel's connection backoff. TODO(roth): Once we see whether this proves useful, either create a gRFC and change this to be a method of the Channel class, or remove it.
Definition at line 111 of file channel_cc.cc.
std::shared_ptr<Channel> grpc::experimental::CreateCustomChannelWithInterceptors | ( | const grpc::string & | target, |
const std::shared_ptr< ChannelCredentials > & | creds, | ||
const ChannelArguments & | args, | ||
std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> | interceptor_creators | ||
) |
Create a new custom Channel pointing to target with interceptors being invoked per call.
target | The URI of the endpoint to connect to. |
creds | Credentials to use for the created channel. If it does not hold an object or is invalid, a lame channel (one on which all operations fail) is returned. |
args | Options for channel creation. |
std::shared_ptr<grpc::Channel> grpc::experimental::CreateCustomChannelWithInterceptors | ( | const grpc::string & | target, |
const std::shared_ptr< grpc::ChannelCredentials > & | creds, | ||
const grpc::ChannelArguments & | args, | ||
std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> | interceptor_creators | ||
) |
std::shared_ptr<grpc::Channel> grpc::experimental::CreateCustomChannelWithInterceptors | ( | const std::string & | target, |
const std::shared_ptr< grpc::ChannelCredentials > & | creds, | ||
const grpc::ChannelArguments & | args, | ||
std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> | interceptor_creators | ||
) |
Create a new custom Channel pointing to target with interceptors being invoked per call.
target | The URI of the endpoint to connect to. |
creds | Credentials to use for the created channel. If it does not hold an object or is invalid, a lame channel (one on which all operations fail) is returned. |
args | Options for channel creation. |
Definition at line 72 of file create_channel.cc.
void grpc::experimental::EnableCallMetricRecording | ( | grpc::ServerBuilder * | builder | ) |
Definition at line 74 of file orca_interceptor.cc.
def grpc.experimental.experimental_api | ( | f | ) |
Definition at line 72 of file src/python/grpcio/grpc/experimental/__init__.py.
std::unique_ptr< AltsContext > grpc::experimental::GetAltsContextFromAuthContext | ( | const std::shared_ptr< const AuthContext > & | auth_context | ) |
Definition at line 42 of file alts_util.cc.
def grpc.experimental.insecure_channel_credentials | ( | ) |
Creates a ChannelCredentials for use with an insecure channel. THIS IS AN EXPERIMENTAL API.
Definition at line 51 of file src/python/grpcio/grpc/experimental/__init__.py.
std::shared_ptr< ChannelCredentials > grpc::experimental::LocalCredentials | ( | grpc_local_connect_type | type | ) |
Builds Local Credentials.
Definition at line 309 of file secure_credentials.cc.
std::shared_ptr< ServerCredentials > grpc::experimental::LocalServerCredentials | ( | grpc_local_connect_type | type | ) |
Definition at line 147 of file secure_server_credentials.cc.
std::shared_ptr< CallCredentials > grpc::experimental::MetadataCredentialsFromPlugin | ( | std::unique_ptr< MetadataCredentialsPlugin > | plugin, |
grpc_security_level | min_security_level | ||
) |
Definition at line 278 of file secure_credentials.cc.
void grpc::experimental::RegisterGlobalClientInterceptorFactory | ( | ClientInterceptorFactoryInterface * | factory | ) |
Definition at line 30 of file client_interceptor.cc.
std::shared_ptr< CallCredentials > grpc::experimental::StsCredentials | ( | const StsCredentialsOptions & | options | ) |
Definition at line 272 of file secure_credentials.cc.
grpc_sts_credentials_options grpc::experimental::StsCredentialsCppToCoreOptions | ( | const StsCredentialsOptions & | options | ) |
Definition at line 255 of file secure_credentials.cc.
grpc::Status grpc::experimental::StsCredentialsOptionsFromEnv | ( | StsCredentialsOptions * | options | ) |
Creates STS credentials options from the $STS_CREDENTIALS environment variable. This environment variable points to the path of a JSON file comforming to the schema described above.
Definition at line 219 of file secure_credentials.cc.
grpc::Status grpc::experimental::StsCredentialsOptionsFromJson | ( | const std::string & | json_string, |
StsCredentialsOptions * | options | ||
) |
Definition at line 162 of file secure_credentials.cc.
void grpc::experimental::TestOnlyResetGlobalClientInterceptorFactory | ( | ) |
Definition at line 41 of file client_interceptor.cc.
std::shared_ptr< ChannelCredentials > grpc::experimental::TlsCredentials | ( | const TlsChannelCredentialsOptions & | options | ) |
Builds TLS Credentials given TLS options.
Definition at line 316 of file secure_credentials.cc.
std::shared_ptr< ServerCredentials > grpc::experimental::TlsServerCredentials | ( | const experimental::TlsServerCredentialsOptions & | options | ) |
Builds TLS ServerCredentials given TLS options.
Definition at line 153 of file secure_server_credentials.cc.
std::string grpc::experimental::ValidateServiceConfigJSON | ( | const std::string & | service_config_json | ) |
Validates service_config_json. If valid, returns an empty string. Otherwise, returns the validation error. TODO(yashykt): Promote it to out of experimental once it is proved useful and gRFC is accepted.
Definition at line 30 of file validate_service_config.cc.
def grpc.experimental.wrap_server_method_handler | ( | wrapper, | |
handler | |||
) |
Wraps the server method handler function. The server implementation requires all server handlers being wrapped as RpcMethodHandler objects. This helper function ease the pain of writing server handler wrappers. Args: wrapper: A wrapper function that takes in a method handler behavior (the actual function) and returns a wrapped function. handler: A RpcMethodHandler object to be wrapped. Returns: A newly created RpcMethodHandler.
Definition at line 82 of file src/python/grpcio/grpc/experimental/__init__.py.
std::shared_ptr<ChannelCredentials> grpc::experimental::XdsCredentials | ( | const std::shared_ptr< ChannelCredentials > & | fallback_creds | ) |
Definition at line 48 of file cpp/client/xds_credentials.cc.
std::shared_ptr<ServerCredentials> grpc::experimental::XdsServerCredentials | ( | const std::shared_ptr< ServerCredentials > & | fallback_credentials | ) |
Definition at line 48 of file xds_server_credentials.cc.
|
private |
Definition at line 115 of file src/python/grpcio/grpc/experimental/__init__.py.
|
private |
Definition at line 27 of file src/python/grpcio/grpc/experimental/__init__.py.
|
private |
Definition at line 47 of file src/python/grpcio/grpc/experimental/__init__.py.
|
static |
Definition at line 40 of file tls_certificate_verifier.cc.