# Functions
CodeFromHTTPStatus converts http status code to gRPC status code See: https://github.com/grpc/grpc/blob/master/doc/http-grpc-status-mapping.md.
ErrorFromHTTPResponseCode converts http response code to gRPC status error.
ErrorFromInternalStatus converts internal status to gRPC status error.
FromInvokeRequestMessage creates InvokeMethodRequest object from InvokeRequest pb object.
HTTPStatusFromCode converts a gRPC error code into the corresponding HTTP response status.
InternalInvokeRequest creates InvokeMethodRequest object from InternalInvokeRequest pb object.
InternalInvokeResponse returns InvokeMethodResponse for InternalInvokeResponse pb to use the helpers.
InternalMetadataToGrpcMetadata converts internal metadata map to gRPC metadata.
InternalMetadataToHTTPHeader converts internal metadata pb to HTTP headers.
IsGRPCProtocol checks if metadata is originated from gRPC API.
IsJSONContentType returns true if contentType is the mime media type for JSON.
NewInvokeMethodRequest creates InvokeMethodRequest object for method.
NewInvokeMethodResponse returns new InvokeMethodResponse object with status.
ProtobufToJSON serializes Protobuf message to json format.
No description provided by the author
WithCustomGRPCMetadata applies a metadata map to the outgoing context metadata.
# Constants
No description provided by the author
No description provided by the author
ContentLengthHeader is the header key of content-length.
ContentTypeHeader is the header key of content-type.
DaprHeaderPrefix is the prefix if metadata is defined by non user-defined http headers.
nolint:nosnakecase.
DestinationIDHeader is the header carrying the value of the invoked app id.
GRPCContentType is the MIME media type for grpc.
JSONContentType is the MIME media type for JSON.
OctetStreamContentType is the MIME media type for arbitrary binary data.
ProtobufContentType is the MIME media type for Protobuf.
Maximum size, in bytes, for the buffer used by CallLocalStream: 2KB.
# Variables
BufPool is a pool of *[]byte used by direct messaging (for sending on both the server and client).
# Structs
InvokeMethodRequest holds InternalInvokeRequest protobuf message and provides the helpers to manage it.
InvokeMethodResponse holds InternalInvokeResponse protobuf message and provides the helpers to manage it.
# Interfaces
DirectMessaging is the API interface for invoking a remote app.
# Type aliases
DaprInternalMetadata is the metadata type to transfer HTTP header and gRPC metadata from user app to Dapr.