[STAGE4] Adapter SDK, 4 adapters, contract tests, preview
This commit is contained in:
1 parent
7ef5b02698
commit
506ae58410
10 files changed
+142
-2
No files matched your search
@@ -0,0 +1,10 @@
|
||||
"""Adapter contract for the Stage 4 event fabric."""
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class Adapter(ABC):
|
||||
name = "adapter"
|
||||
|
||||
@abstractmethod
|
||||
def poll(self, conn) -> int:
|
||||
"""Emit zero or more events; return number of new events."""
|
||||
Reference in new issue
Block a user