django_socio_grpc.services.base_service

Module Contents

Classes

Service

Data

logger

API

django_socio_grpc.services.base_service.logger

‘getLogger(…)’

class django_socio_grpc.services.base_service.Service(**kwargs)

Bases: django_socio_grpc.grpc_actions.actions.GRPCActionMixin

authentication_classes

None

permission_classes

None

action: str | None

None

request: google.protobuf.message.Message | None

None

context: django_socio_grpc.request_transformer.grpc_internal_proxy.GRPCInternalProxyContext | None

None

_app_handler: django_socio_grpc.services.AppHandlerRegistry

None

_servicer_proxy: type[django_socio_grpc.services.servicer_proxy.ServicerProxy]

None

_is_auth_performed: bool

False

classmethod get_service_name()
classmethod get_controller_name()
perform_authentication()
resolve_user()
_check_permissions()
async _async_check_permissions()
check_permissions()
async acheck_object_permissions(obj)
check_object_permissions(obj)
get_permissions() list[rest_framework.permissions.BasePermission]
_before_action()
async _async_before_action()
before_action()

Runs anything that needs to occur prior to calling the method handler.

_after_action()
async _async_after_action()
after_action()

Runs anything that needs to occur after calling the method handler.

get_log_extra_context()

Using this method is deprecated. Refer to the logging documentation to see how to add extra context.

classmethod as_servicer(**initkwargs)

Returns a gRPC servicer instance::

servicer = PostService.as_servicer()
add_PostControllerServicer_to_server(servicer, server)