Copyright | (c) Jiasen Wu 2020 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data ClientToken = ClientToken {
- _ct_token :: Text
- _ct_api_address :: Text
- _ct_api_url :: Text
- _ct_api_key :: Text
- type Dispatcher = forall req contentType res accept. (Produces req accept, MimeUnrender accept res, MimeType contentType, HasCallStack) => NeptuneBackendRequest req contentType res accept -> IO res
- data NeptuneSession = NeptuneSession {}
- data Experiment = Experiment {}
- class (Typeable a, Show a) => NeptDataType a where
- neptChannelType :: Proxy a -> ChannelTypeEnum
- toNeptPoint :: DataPoint a -> Point
- newtype DataChannel a = DataChannel Text
- data DataChannelAny = forall a.NeptDataType a => DataChannelAny (DataChannel a)
- type ChannelHashMap = TVar (HashMap Text DataChannelAny)
- data DataPoint a = DataPoint {
- _dpt_name :: Text
- _dpt_timestamp :: UTCTime
- _dpt_value :: a
- data DataPointAny = forall a.NeptDataType a => DataPointAny (DataPoint a)
- ct_token :: Lens' ClientToken Text
- ct_api_url :: Lens' ClientToken Text
- ct_api_key :: Lens' ClientToken Text
- ct_api_address :: Lens' ClientToken Text
- neptune_project :: Lens' NeptuneSession ProjectWithRoleDTO
- neptune_oauth2_refresh :: Lens' NeptuneSession ThreadId
- neptune_oauth2 :: Lens' NeptuneSession (MVar OAuth2Session)
- neptune_http_manager :: Lens' NeptuneSession Manager
- neptune_config :: Lens' NeptuneSession NeptuneBackendConfig
- neptune_client_token :: Lens' NeptuneSession ClientToken
- exp_user_channels :: Lens' Experiment ChannelHashMap
- exp_transmitter_flag :: Lens' Experiment Event
- exp_transmitter :: Lens' Experiment ThreadId
- exp_stop_flag :: Lens' Experiment Event
- exp_outbound_q :: Lens' Experiment (TChan DataPointAny)
- exp_experiment_id :: Lens' Experiment ExperimentId
- exp_abort_handler :: Lens' Experiment ThreadId
- dpt_value :: forall a a. Lens (DataPoint a) (DataPoint a) a a
- dpt_timestamp :: forall a. Lens' (DataPoint a) UTCTime
- dpt_name :: forall a. Lens' (DataPoint a) Text
- dpt_name_A :: Lens' DataPointAny Text
- dpt_timestamp_A :: Lens' DataPointAny UTCTime
Documentation
data ClientToken Source #
Decoded client token
ClientToken | |
|
Instances
type Dispatcher = forall req contentType res accept. (Produces req accept, MimeUnrender accept res, MimeType contentType, HasCallStack) => NeptuneBackendRequest req contentType res accept -> IO res Source #
data NeptuneSession Source #
Neptune session. It contains all necessary information to communicate the server.
NeptuneSession | |
|
data Experiment Source #
Experiment | |
|
class (Typeable a, Show a) => NeptDataType a where Source #
neptChannelType :: Proxy a -> ChannelTypeEnum Source #
toNeptPoint :: DataPoint a -> Point Source #
Instances
NeptDataType Double Source # | |
Defined in Neptune.Session |
newtype DataChannel a Source #
Type-safe data channel
DataChannel Text | Channel Id |
Instances
Show (DataChannel a) Source # | |
Defined in Neptune.Session showsPrec :: Int -> DataChannel a -> ShowS # show :: DataChannel a -> String # showList :: [DataChannel a] -> ShowS # |
data DataChannelAny Source #
Data channel of any type
forall a.NeptDataType a => DataChannelAny (DataChannel a) |
Instances
Show DataChannelAny Source # | |
Defined in Neptune.Session showsPrec :: Int -> DataChannelAny -> ShowS # show :: DataChannelAny -> String # showList :: [DataChannelAny] -> ShowS # |
type ChannelHashMap = TVar (HashMap Text DataChannelAny) Source #
Hashmap of all channels in use
Type-safe data point
DataPoint | |
|
data DataPointAny Source #
Data point of any type
forall a.NeptDataType a => DataPointAny (DataPoint a) |
Instances
Show DataPointAny Source # | |
Defined in Neptune.Session showsPrec :: Int -> DataPointAny -> ShowS # show :: DataPointAny -> String # showList :: [DataPointAny] -> ShowS # |
dpt_name_A :: Lens' DataPointAny Text Source #
Lens to get/set _dpt_name
for DataPointAny
dpt_timestamp_A :: Lens' DataPointAny UTCTime Source #
Lens to get/set _dpt_timestamp
for DataPointAny