.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self) | |
clear (self) | |
configure (self, *args) | |
get (self, *args) | |
add (self, value, *args) | |
dump (self) | |
Public Attributes | |
lock = threading.Lock() | |
dict | counters = {} |
int | lock = 0 |
Static Private Attributes | |
str | __slots__ = 'counters', 'lock' |
searx.metrics.models.CounterStorage.__init__ | ( | self | ) |
searx.metrics.models.CounterStorage.add | ( | self, | |
value, | |||
* | args ) |
Reimplemented in searx.metrics.models.VoidCounterStorage.
Definition at line 147 of file models.py.
References searx.metrics.models.CounterStorage.counters, searx.metrics.models.CounterStorage.lock, and searx.search.processors.abstract.SuspendedStatus.lock.
searx.metrics.models.CounterStorage.clear | ( | self | ) |
Definition at line 136 of file models.py.
References searx.metrics.models.CounterStorage.lock, and searx.search.processors.abstract.SuspendedStatus.lock.
Referenced by searx.metrics.models.HistogramStorage.__init__().
searx.metrics.models.CounterStorage.configure | ( | self, | |
* | args ) |
searx.metrics.models.CounterStorage.dump | ( | self | ) |
Definition at line 151 of file models.py.
References searx.metrics.models.CounterStorage.counters, searx.metrics.models.CounterStorage.lock, and searx.search.processors.abstract.SuspendedStatus.lock.
searx.metrics.models.CounterStorage.get | ( | self, | |
* | args ) |
Definition at line 144 of file models.py.
References searx.metrics.models.CounterStorage.counters.
Referenced by searx.botdetection.config.Config.__getitem__(), searx.botdetection.config.Config.path(), and searx.botdetection.config.Config.pyobj().
dict searx.metrics.models.CounterStorage.counters = {} |
Definition at line 138 of file models.py.
Referenced by searx.metrics.models.CounterStorage.add(), searx.metrics.models.CounterStorage.dump(), and searx.metrics.models.CounterStorage.get().
searx.metrics.models.CounterStorage.lock = threading.Lock() |
Definition at line 133 of file models.py.
Referenced by searx.metrics.models.CounterStorage.add(), searx.metrics.models.CounterStorage.clear(), searx.metrics.models.CounterStorage.dump(), and searx.search.processors.abstract.SuspendedStatus.resume().
int searx.metrics.models.CounterStorage.lock = 0 |
Definition at line 141 of file models.py.
Referenced by searx.metrics.models.CounterStorage.add(), searx.metrics.models.CounterStorage.clear(), searx.metrics.models.CounterStorage.dump(), and searx.search.processors.abstract.SuspendedStatus.resume().