|
| void | ChannelResetConnectionBackoff (Channel *channel) |
| | Resets the channel's connection backoff. More...
|
| |
| int64_t | ChannelGetChannelzUuid (Channel *channel) |
| | Retrieves a channel's channelz uuid TODO(ctiller): 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. More...
|
| |
| std::shared_ptr< Channel > | 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. More...
|
| |
| std::shared_ptr< grpc::Channel > | CreateChannelFromEndpoint (std::unique_ptr< grpc_event_engine::experimental::EventEngine::Endpoint > endpoint, const std::shared_ptr< ChannelCredentials > &creds, const ChannelArguments &args) |
| | Creates a new Channel from an EventEngine endpoint. More...
|
| |
| void | SetVirtualService (Service *service) |
| |
| std::shared_ptr< grpc::Channel > | 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) |
| |
| grpc::Status | StsCredentialsOptionsFromJson (const std::string &json_string, StsCredentialsOptions *options) |
| |
| grpc::Status | StsCredentialsOptionsFromEnv (StsCredentialsOptions *options) |
| | Creates STS credentials options from the $STS_CREDENTIALS environment variable. More...
|
| |
| std::shared_ptr< CallCredentials > | StsCredentials (const StsCredentialsOptions &options) |
| |
| std::shared_ptr< CallCredentials > | MetadataCredentialsFromPlugin (std::unique_ptr< MetadataCredentialsPlugin > plugin, grpc_security_level min_security_level) |
| |
| std::shared_ptr< ChannelCredentials > | AltsCredentials (const AltsCredentialsOptions &options) |
| | Builds ALTS Credentials given ALTS specific options. More...
|
| |
| std::shared_ptr< ChannelCredentials > | LocalCredentials (grpc_local_connect_type type) |
| | Builds Local Credentials. More...
|
| |
| std::shared_ptr< ChannelCredentials > | TlsCredentials (const TlsChannelCredentialsOptions &options) |
| | Builds TLS Credentials given TLS options. More...
|
| |
| std::shared_ptr< ServerCredentials > | AltsServerCredentials (const AltsServerCredentialsOptions &options) |
| | Builds ALTS ServerCredentials given ALTS specific options. More...
|
| |
| std::shared_ptr< ServerCredentials > | LocalServerCredentials (grpc_local_connect_type type) |
| | Builds Local ServerCredentials. More...
|
| |
| std::shared_ptr< ServerCredentials > | TlsServerCredentials (const experimental::TlsServerCredentialsOptions &options) |
| | Builds TLS ServerCredentials given TLS options. More...
|
| |
| void | RegisterGlobalClientInterceptorFactory (ClientInterceptorFactoryInterface *factory) |
| |
| void | TestOnlyResetGlobalClientInterceptorFactory () |
| |
| std::string | ValidateServiceConfigJSON (const std::string &service_config_json) |
| | Validates service_config_json. More...
|
| |
| std::shared_ptr< Channel > | CreateVirtualChannel (grpc::internal::Call call) |
| | Create a new custom virtual Channel using call. More...
|
| |
| std::shared_ptr< Channel > | CreateVirtualChannel (grpc::internal::Call call, const ChannelArguments &args) |
| | Create a new custom virtual Channel using call. More...
|
| |
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
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.
- No other hook points will be present along with this.
- It is illegal for an interceptor to block/delay this operation.
- ALL interceptors see this hook point irrespective of whether the RPC was hijacked or not.
|
| NUM_INTERCEPTION_HOOKS | |