Copyright | Aleksandr Krupenkin 2016-2021 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Ipfs Stream API types.
Documentation
type LogReturnType = Text Source #
data ResponseObj Source #
Instances
Eq ResponseObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream (==) :: ResponseObj -> ResponseObj -> Bool # (/=) :: ResponseObj -> ResponseObj -> Bool # | |
Show ResponseObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream showsPrec :: Int -> ResponseObj -> ShowS # show :: ResponseObj -> String # showList :: [ResponseObj] -> ShowS # | |
FromJSON ResponseObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream parseJSON :: Value -> Parser ResponseObj # parseJSONList :: Value -> Parser [ResponseObj] # |
data RepoKeyObj Source #
Instances
Eq RepoKeyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream (==) :: RepoKeyObj -> RepoKeyObj -> Bool # (/=) :: RepoKeyObj -> RepoKeyObj -> Bool # | |
Show RepoKeyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream showsPrec :: Int -> RepoKeyObj -> ShowS # show :: RepoKeyObj -> String # showList :: [RepoKeyObj] -> ShowS # | |
FromJSON RepoKeyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream parseJSON :: Value -> Parser RepoKeyObj # parseJSONList :: Value -> Parser [RepoKeyObj] # |
data RepoVerifyObj Source #
Instances
Eq RepoVerifyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream (==) :: RepoVerifyObj -> RepoVerifyObj -> Bool # (/=) :: RepoVerifyObj -> RepoVerifyObj -> Bool # | |
Show RepoVerifyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream showsPrec :: Int -> RepoVerifyObj -> ShowS # show :: RepoVerifyObj -> String # showList :: [RepoVerifyObj] -> ShowS # | |
FromJSON RepoVerifyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream parseJSON :: Value -> Parser RepoVerifyObj # parseJSONList :: Value -> Parser [RepoVerifyObj] # |
data PubsubSubObj Source #
Instances
Eq PubsubSubObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream (==) :: PubsubSubObj -> PubsubSubObj -> Bool # (/=) :: PubsubSubObj -> PubsubSubObj -> Bool # | |
Show PubsubSubObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream showsPrec :: Int -> PubsubSubObj -> ShowS # show :: PubsubSubObj -> String # showList :: [PubsubSubObj] -> ShowS # | |
FromJSON PubsubSubObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream parseJSON :: Value -> Parser PubsubSubObj # parseJSONList :: Value -> Parser [PubsubSubObj] # |
type IpfsStreamApi = ("ping" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO PingObj))) :<|> (("dht" :> ("findpeer" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO DhtObj)))) :<|> (("dht" :> ("findprovs" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO DhtObj)))) :<|> (("dht" :> ("get" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO DhtObj)))) :<|> (("dht" :> ("provide" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO DhtObj)))) :<|> (("dht" :> ("query" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO DhtObj)))) :<|> (("log" :> ("tail" :> StreamGet NewlineFraming IpfsText (SourceIO LogReturnType))) :<|> (("repo" :> ("gc" :> StreamGet NewlineFraming JSON (SourceIO RepoGcObj))) :<|> (("repo" :> ("verify" :> StreamGet NewlineFraming JSON (SourceIO RepoVerifyObj))) :<|> (("refs" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO RefsObj))) :<|> (("refs" :> ("local" :> StreamGet NewlineFraming JSON (SourceIO RefsObj))) :<|> ("pubsub" :> ("sub" :> (Capture "arg" Text :> StreamGet NewlineFraming JSON (SourceIO PubsubSubObj)))))))))))))) Source #