[#1243] node/cfg: Add notification config

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-03-15 22:42:15 +03:00 committed by Alex Vanin
parent 16543a1904
commit 5dba64fcc5
3 changed files with 19 additions and 5 deletions

View file

@ -97,6 +97,8 @@ type cfg struct {
cfgObject cfgObject
cfgNotifications cfgNotifications
metricsCollector *metrics.StorageMetrics
workers []worker
@ -183,6 +185,12 @@ type cfgObject struct {
cfgLocalStorage cfgLocalStorage
}
type cfgNotifications struct {
enabled bool
nw notificationWriter
defaultTopic string
}
type cfgLocalStorage struct {
localStorage *engine.StorageEngine