minos.networks.decorators.callables.checkers
Classes
Checker Meta class. |
|
Checker Wrapper class. |
- class CheckerMeta[source]
Bases:
object
Checker Meta class.
- func: collections.abc.Callable[[minos.networks.requests.abc.Request], Union[bool, None, collections.abc.Awaitable[Optional[bool]]]]
- async static run_async(metas, *args, **kwargs)[source]
Run a set of checkers asynchronously.
- Parameters
metas (set[minos.networks.decorators.callables.checkers.CheckerMeta]) – The set of checkers.
args – Additional positional arguments.
kwargs – Additional named arguments.
- Returns
This method does not return anything.
- Return type
None
- static run_sync(metas, *args, **kwargs)[source]
Run a set of checkers synchronously.
- Parameters
metas (set[minos.networks.decorators.callables.checkers.CheckerMeta]) – The set of checkers.
args – Additional positional arguments.
kwargs – Additional named arguments.
- Returns
This method does not return anything.
- Return type
- property wrapper: minos.networks.decorators.callables.checkers.CheckerWrapper
Get the
HandlerWrapper
instance.- Returns
A
HandlerWrapper
instance.
- async_wrapper
Get the async
HandlerWrapper
instance.- Returns
A
HandlerWrapper
instance.
- sync_wrapper
Get the sync
HandlerWrapper
instance.- Returns
A
HandlerWrapper
instance.