grpc.framework.common package

Submodules

grpc.framework.common.cardinality module

Defines an enum for classifying RPC methods by streaming semantics.

class grpc.framework.common.cardinality.Cardinality[source]

Bases: enum.Enum

Describes the streaming semantics of an RPC method.

STREAM_STREAM = 'request-streaming/response-streaming'
STREAM_UNARY = 'request-streaming/response-unary'
UNARY_STREAM = 'request-unary/response-streaming'
UNARY_UNARY = 'request-unary/response-unary'

grpc.framework.common.style module

Defines an enum for classifying RPC methods by control flow semantics.

class grpc.framework.common.style.Service[source]

Bases: enum.Enum

Describes the control flow style of RPC method implementation.

EVENT = 'event'
INLINE = 'inline'

Module contents