| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Striot.Nodes.Types
Documentation
Constructors
| Metrics | |
Fields
| |
data KafkaConfig Source #
Constructors
| KafkaConfig | |
Fields
| |
Instances
| Show KafkaConfig Source # | |
Defined in Striot.Nodes.Types Methods showsPrec :: Int -> KafkaConfig -> ShowS # show :: KafkaConfig -> String # showList :: [KafkaConfig] -> ShowS # | |
kafkaTopic :: Lens' KafkaConfig String Source #
kafkaConn :: Lens' KafkaConfig NetConfig Source #
kafkaConGroup :: Lens' KafkaConfig String Source #
data MQTTConfig Source #
Constructors
| MQTTConfig | |
Fields
| |
Instances
| Show MQTTConfig Source # | |
Defined in Striot.Nodes.Types Methods showsPrec :: Int -> MQTTConfig -> ShowS # show :: MQTTConfig -> String # showList :: [MQTTConfig] -> ShowS # | |
mqttTopic :: Lens' MQTTConfig String Source #
mqttConn :: Lens' MQTTConfig NetConfig Source #
data ConnectionConfig Source #
Instances
| Show ConnectionConfig Source # | |
Defined in Striot.Nodes.Types Methods showsPrec :: Int -> ConnectionConfig -> ShowS # show :: ConnectionConfig -> String # showList :: [ConnectionConfig] -> ShowS # | |
data StriotConfig Source #
Constructors
| StriotConfig | |
Fields | |
Instances
| Show StriotConfig Source # | |
Defined in Striot.Nodes.Types Methods showsPrec :: Int -> StriotConfig -> ShowS # show :: StriotConfig -> String # showList :: [StriotConfig] -> ShowS # | |
| FromEnv StriotConfig Source # | |
Defined in Striot.Nodes.Types Methods fromEnv :: Maybe StriotConfig -> Parser StriotConfig | |
| ToEnv StriotConfig Source # | |
Defined in Striot.Nodes.Types Methods toEnv :: StriotConfig -> EnvList StriotConfig | |
| HasStriotConfig StriotConfig Source # | |
Defined in Striot.Nodes.Types Methods striotConfig :: Lens' StriotConfig StriotConfig Source # chanSize :: Lens' StriotConfig Int Source # egressConnConfig :: Lens' StriotConfig ConnectionConfig Source # ingressConnConfig :: Lens' StriotConfig ConnectionConfig Source # nodeName :: Lens' StriotConfig String Source # | |
| MonadReader StriotConfig StriotApp Source # | |
Defined in Striot.Nodes.Types Methods ask :: StriotApp StriotConfig # local :: (StriotConfig -> StriotConfig) -> StriotApp a -> StriotApp a # reader :: (StriotConfig -> a) -> StriotApp a # | |
class HasStriotConfig c where Source #
Minimal complete definition
Methods
striotConfig :: Lens' c StriotConfig Source #
chanSize :: Lens' c Int Source #
egressConnConfig :: Lens' c ConnectionConfig Source #
ingressConnConfig :: Lens' c ConnectionConfig Source #
Instances
| HasStriotConfig StriotConfig Source # | |
Defined in Striot.Nodes.Types Methods striotConfig :: Lens' StriotConfig StriotConfig Source # chanSize :: Lens' StriotConfig Int Source # egressConnConfig :: Lens' StriotConfig ConnectionConfig Source # ingressConnConfig :: Lens' StriotConfig ConnectionConfig Source # nodeName :: Lens' StriotConfig String Source # | |
writeConf :: ConnectType -> ConnectionConfig -> [EnvVar] Source #
readConf :: ConnectType -> Parser ConnectionConfig Source #
Constructors
| StriotApp | |
Fields
| |
Instances
| MonadIO StriotApp Source # | |
Defined in Striot.Nodes.Types | |
| Applicative StriotApp Source # | |
| Functor StriotApp Source # | |
| Monad StriotApp Source # | |
| MonadReader StriotConfig StriotApp Source # | |
Defined in Striot.Nodes.Types Methods ask :: StriotApp StriotConfig # local :: (StriotConfig -> StriotConfig) -> StriotApp a -> StriotApp a # reader :: (StriotConfig -> a) -> StriotApp a # | |
data ConnectType Source #
Instances
| Show ConnectType Source # | |
Defined in Striot.Nodes.Types Methods showsPrec :: Int -> ConnectType -> ShowS # show :: ConnectType -> String # showList :: [ConnectType] -> ShowS # | |