add: edge template
This commit is contained in:
20
edge/app/interfaces/hub_gateway.py
Normal file
20
edge/app/interfaces/hub_gateway.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from app.entities.processed_agent_data import ProcessedAgentData
|
||||
|
||||
|
||||
class HubGateway(ABC):
|
||||
"""
|
||||
Abstract class representing the Store Gateway interface.
|
||||
All store gateway adapters must implement these methods.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def save_data(self, processed_data: ProcessedAgentData) -> bool:
|
||||
"""
|
||||
Method to save the processed agent data in the database.
|
||||
Parameters:
|
||||
processed_data (ProcessedAgentData): The processed agent data to be saved.
|
||||
Returns:
|
||||
bool: True if the data is successfully saved, False otherwise.
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user