-
Notifications
You must be signed in to change notification settings - Fork 2
/
Settings.hs
24 lines (19 loc) · 771 Bytes
/
Settings.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE DeriveGeneric #-}
module Dolla.Consensus.Proposing.Staging.Execution.Environment.EventStore.Settings (Settings (..)) where
import Data.Aeson
import GHC.Generics
import Dolla.Adapter.Aeson.AesonVia
import Dolla.Common.Memory.Byte (Byte)
import Dolla.Common.NodeId
import Dolla.Common.Logging.Core
import qualified Dolla.Libraries.LogEngine.Instances.EventStore.Settings as EventStore
data Settings
= Settings
{ nodeId :: NodeId
, logger :: LoggerSettings
, proposalRootFolder :: FilePath
, proposalSizeLimit :: Byte
, eventStoreClient :: EventStore.Settings}
deriving (Eq,Show, Generic)
deriving (ToJSON,FromJSON) via DefaultJSON Settings