Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types related to IPFS
Synopsis
- newtype BinPath = BinPath {}
- newtype CID = CID {}
- mkCID :: Text -> CID
- newtype Name = Name {}
- type Opt = String
- type Command = String
- type RawMessage = ByteString
- newtype Peer = Peer {}
- newtype Path = Path {}
- data SparseTree
- data Tag
- newtype Timeout = Timeout {}
- newtype URL = URL {}
- type Ignored = [Pattern]
- newtype Gateway = Gateway {
- getGateway :: Text
- data ErrorBody = ErrorBody {}
- data Stat = Stat {}
- newtype Bytes = Bytes {}
Documentation
Path to the IPFS binary
Instances
FromJSON BinPath Source # | |
IsString BinPath Source # | |
Defined in Network.IPFS.BinPath.Types fromString :: String -> BinPath # | |
Generic BinPath Source # | |
Show BinPath Source # | |
FromEnv BinPath Source # | |
Eq BinPath Source # | |
Display BinPath Source # | |
Defined in Network.IPFS.BinPath.Types display :: BinPath -> Utf8Builder # textDisplay :: BinPath -> Text # | |
type Rep BinPath Source # | |
Defined in Network.IPFS.BinPath.Types |
Instances
Instances
FromJSON Name Source # | |
ToJSON Name Source # | |
Defined in Network.IPFS.Name.Types | |
IsString Name Source # | |
Defined in Network.IPFS.Name.Types fromString :: String -> Name # | |
Generic Name Source # | |
Show Name Source # | |
Eq Name Source # | |
Ord Name Source # | |
FromHttpApiData Name Source # | |
Defined in Network.IPFS.Name.Types parseUrlPiece :: Text -> Either Text Name # parseHeader :: ByteString -> Either Text Name # | |
Display Name Source # | |
Defined in Network.IPFS.Name.Types display :: Name -> Utf8Builder # textDisplay :: Name -> Text # | |
ToParamSchema Name Source # | |
Defined in Network.IPFS.Name.Types toParamSchema :: forall (t :: SwaggerKind Type). Proxy Name -> ParamSchema t # | |
ToSchema Name Source # | |
Defined in Network.IPFS.Name.Types | |
type Rep Name Source # | |
Defined in Network.IPFS.Name.Types |
type RawMessage = ByteString Source #
Instances
FromJSON Peer Source # | |
ToJSON Peer Source # | |
Defined in Network.IPFS.Peer.Types | |
IsString Peer Source # | |
Defined in Network.IPFS.Peer.Types fromString :: String -> Peer # | |
Show Peer Source # | |
Eq Peer Source # | |
Display Peer Source # | |
Defined in Network.IPFS.Peer.Types display :: Peer -> Utf8Builder # textDisplay :: Peer -> Text # | |
ToSchema Peer Source # | |
Defined in Network.IPFS.Peer.Types | |
MimeRender OctetStream Peer Source # | |
Defined in Network.IPFS.Peer.Types mimeRender :: Proxy OctetStream -> Peer -> ByteString # | |
MimeRender PlainText Peer Source # | |
Defined in Network.IPFS.Peer.Types mimeRender :: Proxy PlainText -> Peer -> ByteString # |
CID path
Exmaple
"QmcaHAFzUPRCRaUK12dC6YyhcqEEtdfg94XrPwgCxZ1ihD/myfile.txt"
Instances
IsString Path Source # | |
Defined in Network.IPFS.Path.Types fromString :: String -> Path # | |
Generic Path Source # | |
Show Path Source # | |
Eq Path Source # | |
Ord Path Source # | |
ToHttpApiData Path Source # | |
Defined in Network.IPFS.Path.Types toUrlPiece :: Path -> Text # toEncodedUrlPiece :: Path -> Builder # toHeader :: Path -> ByteString # toQueryParam :: Path -> Text # | |
ToSchema Path Source # | |
Defined in Network.IPFS.Path.Types | |
MimeRender OctetStream Path Source # | |
Defined in Network.IPFS.Path.Types mimeRender :: Proxy OctetStream -> Path -> ByteString # | |
MimeRender PlainText Path Source # | |
Defined in Network.IPFS.Path.Types mimeRender :: Proxy PlainText -> Path -> ByteString # | |
type Rep Path Source # | |
Defined in Network.IPFS.Path.Types |
data SparseTree Source #
Directory structure for CIDs and other identifiers
Examples:
Content "abcdef"
show $ Directory [(Key "abcdef", Stub "myfile.txt")])]
"abcdef/myfile.txt"
Instances
Instances
IPFS client URL
Type safety wrapper for IPFS Gateway Used as cname value for DNS updates
Instances
FromJSON Gateway Source # | |
IsString Gateway Source # | |
Defined in Network.IPFS.Gateway.Types fromString :: String -> Gateway # | |
Generic Gateway Source # | |
Show Gateway Source # | |
Eq Gateway Source # | |
ToSchema Gateway Source # | |
Defined in Network.IPFS.Gateway.Types | |
type Rep Gateway Source # | |
Defined in Network.IPFS.Gateway.Types |