django_socio_grpc.request_transformer.grpc_internal_container

Module Contents

Classes

GRPCRequestContainer

This class is a simple container that allow us to pass some date throught the grpc -> servicer -> middleware -> service. To be able to work with django middleware if an attribute is not found (when getting or setting) on GRPCRequestContainer we look in the GRPCInternalProxyContext where we stock all the compatibility logic

GRPCResponseContainer

This class is a simple container that allow us to pass some date throught the service -> middleware -> servicer -> grpc. To be able to work with django middleware if an attribute is not found (when getting, setting or iteratinf) on GRPCResponseContainer we look in the GRPCInternalProxyResponse where we stock all the compatibility logic

API

class django_socio_grpc.request_transformer.grpc_internal_container.GRPCRequestContainer

This class is a simple container that allow us to pass some date throught the grpc -> servicer -> middleware -> service. To be able to work with django middleware if an attribute is not found (when getting or setting) on GRPCRequestContainer we look in the GRPCInternalProxyContext where we stock all the compatibility logic

grpc_request: google.protobuf.message.Message

None

context: django_socio_grpc.request_transformer.grpc_internal_proxy.GRPCInternalProxyContext

None

action: str

None

service: django_socio_grpc.services.Service

None

__getattr__(attr)

See class documentation

__setattr__(attr: str, value: Any) None

See class documentation

class django_socio_grpc.request_transformer.grpc_internal_container.GRPCResponseContainer

This class is a simple container that allow us to pass some date throught the service -> middleware -> servicer -> grpc. To be able to work with django middleware if an attribute is not found (when getting, setting or iteratinf) on GRPCResponseContainer we look in the GRPCInternalProxyResponse where we stock all the compatibility logic

response: django_socio_grpc.request_transformer.grpc_internal_proxy.GRPCInternalProxyResponse

None

__getattr__(attr)

See class documentation

__aiter__()
__iter__()