Skip to content

cattle_grid.dependencies.internals

CorrelationId module-attribute

CorrelationId = Annotated[
    str, Context("message.correlation_id")
]

The correlation id of the message

InternalExchange module-attribute

InternalExchange = Annotated[
    RabbitExchange, Depends(get_internal_exchange)
]

The interal activity exchange

LookupAnnotation module-attribute

LookupAnnotation = Annotated[
    LookupMethod, Depends(get_lookup)
]

The lookup method loaded from extensions

MethodInformation module-attribute

MethodInformation = Annotated[
    list[MethodInformationModel],
    Depends(get_method_information),
]

Returns the information about the methods that are a part of the exchange

RewriteRules module-attribute

RewriteRules = Annotated[
    RewriteConfiguration, Depends(get_rewrite_rules)
]

Rewturns the rewrite configuration

Transformer module-attribute

Transformer = Annotated[
    Callable[..., Awaitable[dict]], Depends(get_transformer)
]

The transformer loaded from extensions