|
GRPC C++
1.22.0
|
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided function on expiry or cancellation. More...
Namespaces | |
| experimental | |
Data Structures | |
| class | Alarm |
| class | AuthMetadataProcessor |
| Interface allowing custom server-side authorization based on credentials encoded in metadata. More... | |
| class | CallCredentials |
| A call credentials object encapsulates the state needed by a client to authenticate with a server for a given call on a channel. More... | |
| class | Channel |
| Channels represent a connection to an endpoint. Created by CreateChannel. More... | |
| class | ChannelArguments |
| Options for channel creation. More... | |
| class | ChannelCredentials |
| A channel credentials object encapsulates all the state needed by a client to authenticate with a server for a given channel. More... | |
| class | ClientContext |
| A ClientContext allows the person implementing a service client to: More... | |
| class | CompletionQueue |
| A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h). More... | |
| class | GenericStub |
| Generic stubs provide a type-unsafe interface to call gRPC methods by name. More... | |
| class | HealthCheckServiceInterface |
| The gRPC server uses this interface to expose the health checking service without depending on protobuf. More... | |
| class | MetadataCredentialsPlugin |
| User defined metadata credentials. More... | |
| class | PropagationOptions |
| Options for ClientContext::FromServerContext specifying which traits from the ServerContext to propagate (copy) from it into a new ClientContext. More... | |
| class | ResourceQuota |
| ResourceQuota represents a bound on memory and thread usage by the gRPC library. More... | |
| class | Server |
| Represents a gRPC server. More... | |
| class | ServerBuilder |
| A builder class for the creation and startup of grpc::Server instances. More... | |
| class | ServerBuilderOption |
| Interface to pass an option to a ServerBuilder. More... | |
| class | ServerCompletionQueue |
| A specific type of completion queue used by the processing of notifications by servers. More... | |
| class | ServerContext |
| A ServerContext allows the person implementing a service handler to: More... | |
| class | ServerCredentials |
| Wrapper around grpc_server_credentials, a way to authenticate a server. More... | |
| class | ServerInitializer |
| struct | SslCredentialsOptions |
| Options used to build SslCredentials. More... | |
Functions | |
| std::shared_ptr<::grpc::Channel > | CreateChannelImpl (const grpc::string &target, const std::shared_ptr<::grpc::ChannelCredentials > &creds) |
| Create a new Channel pointing to target. More... | |
| std::shared_ptr<::grpc::Channel > | CreateCustomChannelImpl (const grpc::string &target, const std::shared_ptr<::grpc::ChannelCredentials > &creds, const ::grpc::ChannelArguments &args) |
| Create a new custom Channel pointing to target. More... | |
| void | EnableDefaultHealthCheckService (bool enable) |
| Enable/disable the default health checking service. More... | |
| bool | DefaultHealthCheckServiceEnabled () |
| Returns whether the default health checking service is enabled. More... | |
| std::shared_ptr<::grpc::Channel > | CreateCustomChannelImpl (const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds, const grpc::ChannelArguments &args) |
| std::shared_ptr< ChannelCredentials > | GoogleDefaultCredentials () |
| Builds credentials with reasonable defaults. More... | |
| std::shared_ptr< ChannelCredentials > | SslCredentials (const SslCredentialsOptions &options) |
| Builds SSL Credentials given SSL specific options. More... | |
| std::shared_ptr< CallCredentials > | GoogleComputeEngineCredentials () |
| Builds credentials for use when running in GCE. More... | |
| std::shared_ptr< CallCredentials > | ServiceAccountJWTAccessCredentials (const grpc::string &json_key, long token_lifetime_seconds=grpc_impl::kMaxAuthTokenLifetimeSecs) |
| Builds Service Account JWT Access credentials. More... | |
| std::shared_ptr< CallCredentials > | GoogleRefreshTokenCredentials (const grpc::string &json_refresh_token) |
| Builds refresh token credentials. More... | |
| std::shared_ptr< CallCredentials > | AccessTokenCredentials (const grpc::string &access_token) |
| Builds access token credentials. More... | |
| std::shared_ptr< CallCredentials > | GoogleIAMCredentials (const grpc::string &authorization_token, const grpc::string &authority_selector) |
| Builds IAM credentials. More... | |
| std::shared_ptr< ChannelCredentials > | CompositeChannelCredentials (const std::shared_ptr< ChannelCredentials > &channel_creds, const std::shared_ptr< CallCredentials > &call_creds) |
| Combines a channel credentials and a call credentials into a composite channel credentials. More... | |
| std::shared_ptr< CallCredentials > | CompositeCallCredentials (const std::shared_ptr< CallCredentials > &creds1, const std::shared_ptr< CallCredentials > &creds2) |
| Combines two call credentials objects into a composite call credentials. More... | |
| std::shared_ptr< ChannelCredentials > | InsecureChannelCredentials () |
| Credentials for an unencrypted, unauthenticated channel. More... | |
| std::shared_ptr< ChannelCredentials > | CronetChannelCredentials (void *engine) |
| Credentials for a channel using Cronet. More... | |
| std::shared_ptr< CallCredentials > | MetadataCredentialsFromPlugin (std::unique_ptr< MetadataCredentialsPlugin > plugin) |
| std::shared_ptr< ServerCredentials > | SslServerCredentials (const grpc::SslServerCredentialsOptions &options) |
| Builds SSL ServerCredentials given SSL specific options. More... | |
| std::shared_ptr< ServerCredentials > | InsecureServerCredentials () |
| Builds insecure server credentials. More... | |
Variables | |
| constexpr long | kMaxAuthTokenLifetimeSecs = 3600 |
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided function on expiry or cancellation.
| std::shared_ptr<CallCredentials> grpc_impl::AccessTokenCredentials | ( | const grpc::string & | access_token | ) |
Builds access token credentials.
access_token is an oauth2 access token that was fetched using an out of band mechanism.
| std::shared_ptr<CallCredentials> grpc_impl::CompositeCallCredentials | ( | const std::shared_ptr< CallCredentials > & | creds1, |
| const std::shared_ptr< CallCredentials > & | creds2 | ||
| ) |
Combines two call credentials objects into a composite call credentials.
| std::shared_ptr<ChannelCredentials> grpc_impl::CompositeChannelCredentials | ( | const std::shared_ptr< ChannelCredentials > & | channel_creds, |
| const std::shared_ptr< CallCredentials > & | call_creds | ||
| ) |
Combines a channel credentials and a call credentials into a composite channel credentials.
| std::shared_ptr<::grpc::Channel> grpc_impl::CreateChannelImpl | ( | const grpc::string & | target, |
| const std::shared_ptr<::grpc::ChannelCredentials > & | creds | ||
| ) |
Create a new Channel pointing to target.
| 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. |
| std::shared_ptr<::grpc::Channel> grpc_impl::CreateCustomChannelImpl | ( | const grpc::string & | target, |
| const std::shared_ptr< ChannelCredentials > & | creds, | ||
| const grpc::ChannelArguments & | args | ||
| ) |
| std::shared_ptr<::grpc::Channel> grpc_impl::CreateCustomChannelImpl | ( | const grpc::string & | target, |
| const std::shared_ptr<::grpc::ChannelCredentials > & | creds, | ||
| const ::grpc::ChannelArguments & | args | ||
| ) |
Create a new custom Channel pointing to target.
| 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<ChannelCredentials> grpc_impl::CronetChannelCredentials | ( | void * | engine | ) |
Credentials for a channel using Cronet.
| bool grpc_impl::DefaultHealthCheckServiceEnabled | ( | ) |
Returns whether the default health checking service is enabled.
NOT thread safe.
| void grpc_impl::EnableDefaultHealthCheckService | ( | bool | enable | ) |
Enable/disable the default health checking service.
This applies to all C++ servers created afterwards. For each server, user can override the default with a HealthCheckServiceServerBuilderOption. NOT thread safe.
| std::shared_ptr<CallCredentials> grpc_impl::GoogleComputeEngineCredentials | ( | ) |
Builds credentials for use when running in GCE.
| std::shared_ptr<ChannelCredentials> grpc_impl::GoogleDefaultCredentials | ( | ) |
Builds credentials with reasonable defaults.
| std::shared_ptr<CallCredentials> grpc_impl::GoogleIAMCredentials | ( | const grpc::string & | authorization_token, |
| const grpc::string & | authority_selector | ||
| ) |
Builds IAM credentials.
| std::shared_ptr<CallCredentials> grpc_impl::GoogleRefreshTokenCredentials | ( | const grpc::string & | json_refresh_token | ) |
Builds refresh token credentials.
json_refresh_token is the JSON string containing the refresh token along with a client_id and client_secret.
| std::shared_ptr<ChannelCredentials> grpc_impl::InsecureChannelCredentials | ( | ) |
Credentials for an unencrypted, unauthenticated channel.
| std::shared_ptr<ServerCredentials> grpc_impl::InsecureServerCredentials | ( | ) |
Builds insecure server credentials.
| std::shared_ptr<CallCredentials> grpc_impl::MetadataCredentialsFromPlugin | ( | std::unique_ptr< MetadataCredentialsPlugin > | plugin | ) |
| std::shared_ptr<CallCredentials> grpc_impl::ServiceAccountJWTAccessCredentials | ( | const grpc::string & | json_key, |
| long | token_lifetime_seconds = grpc_impl::kMaxAuthTokenLifetimeSecs |
||
| ) |
Builds Service Account JWT Access credentials.
json_key is the JSON key string containing the client's private key. token_lifetime_seconds is the lifetime in seconds of each Json Web Token (JWT) created with this credentials. It should not exceed kMaxAuthTokenLifetimeSecs or will be cropped to this value.
| std::shared_ptr<ChannelCredentials> grpc_impl::SslCredentials | ( | const SslCredentialsOptions & | options | ) |
Builds SSL Credentials given SSL specific options.
| std::shared_ptr<ServerCredentials> grpc_impl::SslServerCredentials | ( | const grpc::SslServerCredentialsOptions & | options | ) |
Builds SSL ServerCredentials given SSL specific options.
| constexpr long grpc_impl::kMaxAuthTokenLifetimeSecs = 3600 |
1.8.13