Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getEntities :: Maybe Text -> Orion [Entity]
- postEntity :: Entity -> Orion SubId
- getEntity :: EntityId -> Orion Entity
- deleteEntity :: EntityId -> Orion ()
- postAttribute :: EntityId -> (AttributeId, Attribute) -> Orion ()
- postTextAttributeOrion :: EntityId -> AttributeId -> Text -> Orion ()
- deleteAttribute :: EntityId -> AttributeId -> Orion ()
- getSubs :: Orion [Subscription]
- postSub :: Subscription -> Orion SubId
- getSub :: SubId -> Orion Subscription
- deleteSub :: SubId -> Orion ()
- patchSub :: SubId -> Map Text Text -> Orion ()
- getOrionDetails :: Path -> Orion (String, Options)
- orionGet :: Path -> Orion ByteString
- orionPost :: (Postable dat, Show dat) => Path -> dat -> Orion Text
- orionDelete :: Path -> Orion ()
- orionPut :: (Putable dat, Show dat) => Path -> dat -> Orion ()
- orionPatch :: (Postable dat, Show dat) => Path -> dat -> Orion ()
- fromSimpleAttribute :: AttributeId -> Map AttributeId Attribute -> Maybe Text
- fromSimpleMetadata :: MetadataId -> Map MetadataId Metadata -> Maybe Text
- getString :: Value -> Maybe Text
- getSimpleAttr :: AttributeId -> Text -> (AttributeId, Attribute)
- getTextMetadata :: MetadataId -> Text -> (MetadataId, Metadata)
- getTimeMetadata :: MetadataId -> UTCTime -> (MetadataId, Metadata)
- debug :: MonadIO m => String -> m ()
- warn :: MonadIO m => String -> m ()
- info :: MonadIO m => String -> m ()
- err :: MonadIO m => String -> m ()
- try :: MonadError a m => m b -> m (Either a b)
Entities
deleteEntity :: EntityId -> Orion () Source #
postAttribute :: EntityId -> (AttributeId, Attribute) -> Orion () Source #
postTextAttributeOrion :: EntityId -> AttributeId -> Text -> Orion () Source #
deleteAttribute :: EntityId -> AttributeId -> Orion () Source #
Subscriptions
getSubs :: Orion [Subscription] Source #
Requests to Orion.
orionDelete :: Path -> Orion () Source #
Helpers
fromSimpleMetadata :: MetadataId -> Map MetadataId Metadata -> Maybe Text Source #
getSimpleAttr :: AttributeId -> Text -> (AttributeId, Attribute) Source #
getTextMetadata :: MetadataId -> Text -> (MetadataId, Metadata) Source #
getTimeMetadata :: MetadataId -> UTCTime -> (MetadataId, Metadata) Source #
try :: MonadError a m => m b -> m (Either a b) Source #