Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Network.Ipfs.Api.Types.Stream
Description
Ipfs Stream API types.
Documentation
type LogReturnType = Text Source #
data ResponseObj Source #
Instances
Eq ResponseObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream | |
Show ResponseObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream Methods showsPrec :: Int -> ResponseObj -> ShowS # show :: ResponseObj -> String # showList :: [ResponseObj] -> ShowS # | |
FromJSON ResponseObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream |
data RepoKeyObj Source #
Constructors
RepoKeyObj | |
Instances
Eq RepoKeyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream | |
Show RepoKeyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream Methods showsPrec :: Int -> RepoKeyObj -> ShowS # show :: RepoKeyObj -> String # showList :: [RepoKeyObj] -> ShowS # | |
FromJSON RepoKeyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream |
Constructors
RepoGcObj | |
Fields |
data RepoVerifyObj Source #
Constructors
RepoVerifyObj | |
Instances
Eq RepoVerifyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream Methods (==) :: RepoVerifyObj -> RepoVerifyObj -> Bool # (/=) :: RepoVerifyObj -> RepoVerifyObj -> Bool # | |
Show RepoVerifyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream Methods showsPrec :: Int -> RepoVerifyObj -> ShowS # show :: RepoVerifyObj -> String # showList :: [RepoVerifyObj] -> ShowS # | |
FromJSON RepoVerifyObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream Methods parseJSON :: Value -> Parser RepoVerifyObj # parseJSONList :: Value -> Parser [RepoVerifyObj] # |
data PubsubSubObj Source #
Instances
Eq PubsubSubObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream | |
Show PubsubSubObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream Methods showsPrec :: Int -> PubsubSubObj -> ShowS # show :: PubsubSubObj -> String # showList :: [PubsubSubObj] -> ShowS # | |
FromJSON PubsubSubObj Source # | |
Defined in Network.Ipfs.Api.Types.Stream |
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 #