ServiceRemoteAttachmentFunctionPool¶
- class dsviper.ServiceRemoteAttachmentFunctionPool¶
Bases:
objectA pool whose functions take the state they run on as first argument.
A CommitAttachmentMutating for a function that mutates, an AttachmentGetting for one that only reads. The caller supplies that state on every call; the pool holds none.
Note: Not directly instantiable.
- check(func_name: str) ServiceRemoteAttachmentFunctionPoolFunction¶
Return the declaration of the attachment function named func_name, or raise if the pool has none.
- documentation() str¶
Return the documentation the service gives the pool, empty when it gives none.
- functions() list[ServiceRemoteAttachmentFunctionPoolFunction]¶
Return the list of function declarations.
- name() str¶
Return the pool name as declared.
- query(func_name: str) ServiceRemoteAttachmentFunctionPoolFunction | None¶
Return the declaration of the attachment function named func_name, or None if the pool has none.