Les choses sérieuses commencent
This commit is contained in:
parent
7a9fe18463
commit
c63f62721b
41 changed files with 1270 additions and 0 deletions
14
erminig/controllers/evezh/abstract.py
Normal file
14
erminig/controllers/evezh/abstract.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class UpstreamSource(ABC):
|
||||
MAX_RETRIES = 2
|
||||
RETRY_DELAY = 2 # secondes
|
||||
|
||||
def __init__(self, name, config):
|
||||
self.name = name
|
||||
self.config = config
|
||||
|
||||
@abstractmethod
|
||||
def get_latest(self):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue