Namespaces
Enumerations
enum StatusCode
| Name | Value |
|---|---|
| OK | 0 |
| CANCELLED | 1 |
| UNKNOWN | 2 |
| INVALID_ARGUMENT | 3 |
| DEADLINE_EXCEEDED | 4 |
| NOT_FOUND | 5 |
| ALREADY_EXISTS | 6 |
| PERMISSION_DENIED | 7 |
| UNAUTHENTICATED | 16 |
| RESOURCE_EXHAUSTED | 8 |
| FAILED_PRECONDITION | 9 |
| ABORTED | 10 |
| OUT_OF_RANGE | 11 |
| UNIMPLEMENTED | 12 |
| INTERNAL | 13 |
| UNAVAILABLE | 14 |
| DATA_LOSS | 15 |
| DO_NOT_USE | -1 |
Defined at line 26 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/status_code_enum.h
Records
-
class AsyncGenericService -
class AuthContext -
class AuthMetadataProcessor -
class AuthPropertyIterator -
class ByteBuffer -
class CallCredentials -
class CallbackGenericService -
class CallbackServerContext -
class Channel -
class ChannelArguments -
class ChannelCredentials -
class ChannelInterface -
class ClientAsyncReader -
class ClientAsyncReaderInterface -
class ClientAsyncReaderWriter -
class ClientAsyncReaderWriterInterface -
class ClientAsyncResponseReader -
class ClientAsyncResponseReaderInterface -
class ClientAsyncWriter -
class ClientAsyncWriterInterface -
class ClientBidiReactor -
class ClientCallbackReader -
class ClientCallbackReaderWriter -
class ClientCallbackUnary -
class ClientCallbackWriter -
class ClientContext -
class ClientReadReactor -
class ClientReader -
class ClientReaderInterface -
class ClientReaderWriter -
class ClientReaderWriterInterface -
class ClientUnaryReactor -
class ClientWriteReactor -
class ClientWriter -
class ClientWriterInterface -
class CompletionQueue -
class CompositeCallCredentialsImpl -
class ContextAllocator -
class GenericCallbackServerContext -
class GenericServerContext -
class HealthCheckServiceInterface -
class MessageAllocator -
class MessageHolder -
class MetadataCredentialsPlugin -
class PropagationOptions -
class ProtoBufferReader -
class ProtoBufferWriter -
class ResourceQuota -
class RpcAllocatorState -
class SecureAuthContext -
class SerializationTraits -
class SerializationTraits -
class SerializationTraits -
class Server -
class ServerAsyncReader -
class ServerAsyncReaderInterface -
class ServerAsyncReaderWriter -
class ServerAsyncReaderWriterInterface -
class ServerAsyncResponseWriter -
class ServerAsyncWriter -
class ServerAsyncWriterInterface -
class ServerBidiReactor -
class ServerBuilder -
class ServerBuilderOption -
class ServerBuilderPlugin -
class ServerCallbackReader -
class ServerCallbackReaderWriter -
class ServerCallbackUnary -
class ServerCallbackWriter -
class ServerCompletionQueue -
class ServerContext -
class ServerContextBase -
class ServerCredentials -
class ServerInitializer -
class ServerInterface -
class ServerReadReactor -
class ServerReader -
class ServerReaderInterface -
class ServerReaderWriter -
class ServerReaderWriterInterface -
class ServerSplitStreamer -
class ServerUnaryReactor -
class ServerUnaryStreamer -
class ServerWriteReactor -
class ServerWriter -
class ServerWriterInterface -
class Service -
class Slice -
class SslCredentialsOptions -
class SslServerCredentialsOptions -
class Status -
class StubOptions -
class TimePoint -
class TimePoint -
class TimePoint -
class WriteOptions -
class XdsChannelCredentialsImpl -
class string_ref
Functions
-
std::shared_ptr<const AuthContext> CreateAuthContext (grpc_call * call)TODO(ctiller): not sure we want to make this a permanent thing
-
void AddInsecureChannelFromFd (Server * server, int fd)Add a new client to a
communicating over the given
file descriptor.
Parameters
server The server to add the client to.fd The file descriptor representing a socket. -
template <class ProtoBufferWriter, class T>Status GenericSerialize (const grpc::protobuf::MessageLite & msg, ByteBuffer * bb, bool * own_buffer)ProtoBufferWriter must be a subclass of ::protobuf::io::ZeroCopyOutputStream.
Defined at line 45 of file ../../third_party/grpc-migrating/src/include/grpcpp/impl/proto_utils.h
-
template <class ProtoBufferReader, class T>Status GenericDeserialize (ByteBuffer * buffer, grpc::protobuf::MessageLite * msg)BufferReader must be a subclass of ::protobuf::io::ZeroCopyInputStream.
Defined at line 71 of file ../../third_party/grpc-migrating/src/include/grpcpp/impl/proto_utils.h
-
std::unique_ptr<ServerBuilderOption> MakeChannelArgumentOption (const std::string & name, const std::string & value) -
std::unique_ptr<ServerBuilderOption> MakeChannelArgumentOption (const std::string & name, int value) -
std::unique_ptr<ServerBuilderOption> MakeChannelArgumentOption (const std::string & name, void * value) -
std::shared_ptr<grpc::Channel> CreateInsecureChannelFromFd (const std::string & target, int fd)Create a new
communicating over the given file descriptor.
Parameters
target The name of the target.fd The file descriptor representing a socket. -
std::shared_ptr<Channel> CreateChannel (const grpc::string & target, const std::shared_ptr<ChannelCredentials> & creds)Create a new
pointing to
Parameters
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<Channel> CreateChannelInternal (const std::string & host, grpc_channel * c_channel, std::vector<std::unique_ptr<experimental::ClientInterceptorFactoryInterface>> interceptor_creators) -
std::shared_ptr<grpc::Channel> CreateCustomInsecureChannelFromFd (const std::string & target, int fd, const grpc::ChannelArguments & args)Create a new
communicating over given file descriptor with custom
channel arguments.
Parameters
target The name of the target.fd The file descriptor representing a socket.args Options for channel creation. -
std::shared_ptr<Channel> CreateCustomChannel (const grpc::string & target, const std::shared_ptr<grpc::ChannelCredentials> & creds, const grpc::ChannelArguments & args)Create a new
pointing to
Parameters
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. -
void 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.
-
bool DefaultHealthCheckServiceEnabled ()Returns whether the default health checking service is enabled.
NOT thread safe.
-
grpc::string_ref StringRefFromSlice (const grpc_slice * slice)Defined at line 121 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/slice.h
-
std::string StringFromCopiedSlice (grpc_slice slice)Defined at line 127 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/slice.h
-
grpc_slice SliceReferencingString (const std::string & str)Defined at line 132 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/slice.h
-
grpc_slice SliceFromCopiedString (const std::string & str)Defined at line 136 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/slice.h
-
std::shared_ptr<ChannelCredentials> XdsCredentials (const std::shared_ptr<ChannelCredentials> & fallback_creds)Builds XDS Credentials.
-
std::shared_ptr<ServerCredentials> XdsServerCredentials (const std::shared_ptr<ServerCredentials> & fallback_credentials)Builds Xds ServerCredentials given fallback credentials
-
std::string Version ()Return gRPC library version.
-
void Timepoint2Timespec (const std::chrono::system_clock::time_point & from, gpr_timespec * to)from and to should be absolute time.
-
void TimepointHR2Timespec (const std::chrono::high_resolution_clock::time_point & from, gpr_timespec * to) -
std::chrono::system_clock::time_point Timespec2Timepoint (gpr_timespec t) -
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.
-
std::shared_ptr<ServerCredentials> SslServerCredentials (const grpc::SslServerCredentialsOptions & options)Builds SSL ServerCredentials given SSL specific options
-
std::shared_ptr<ServerCredentials> InsecureServerCredentials () -
std::shared_ptr<ChannelCredentials> GoogleDefaultCredentials ()Builds credentials with reasonable defaults.
-
std::shared_ptr<ChannelCredentials> SslCredentials (const SslCredentialsOptions & options)Builds SSL Credentials given SSL specific options
-
std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials ()Builds credentials for use when running in GCE
-
std::shared_ptr<CallCredentials> ServiceAccountJWTAccessCredentials (const grpc::string & json_key, long token_lifetime_seconds)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
or will be cropped to this value.
-
std::shared_ptr<CallCredentials> 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<CallCredentials> 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> GoogleIAMCredentials (const grpc::string & authorization_token, const grpc::string & authority_selector)Builds IAM credentials.
-
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.
-
std::shared_ptr<ChannelCredentials> InsecureChannelCredentials ()Credentials for an unencrypted, unauthenticated channel
-
std::shared_ptr<CallCredentials> MetadataCredentialsFromPlugin (std::unique_ptr<MetadataCredentialsPlugin> plugin) -
std::shared_ptr<CallCredentials> ExternalAccountCredentials (const grpc::string & json_string, const std::vector<grpc::string> & scopes)Builds External Account credentials.
json_string is the JSON string containing the credentials options.
scopes contains the scopes to be binded with the credentials.
-
bool operator== (string_ref x, string_ref y)Comparison operators
Defined at line 136 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
-
bool operator!= (string_ref x, string_ref y)Defined at line 137 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
-
bool operator< (string_ref x, string_ref y)Defined at line 138 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
-
bool operator<= (string_ref x, string_ref y)Defined at line 139 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
-
bool operator> (string_ref x, string_ref y)Defined at line 140 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
-
bool operator>= (string_ref x, string_ref y)Defined at line 141 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
-
std::ostream & operator<< (std::ostream & outconst string_ref & string)Defined at line 143 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h