Safe Haskell | None |
---|---|
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 {}
Documentation
Path to the IPFS binary
Instances
Instances
Eq Name Source # | |
Ord Name Source # | |
Show Name Source # | |
IsString Name Source # | |
Defined in Network.IPFS.Name.Types fromString :: String -> Name # | |
Generic Name Source # | |
ToJSON Name Source # | |
Defined in Network.IPFS.Name.Types | |
FromJSON 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 # | |
ToSchema Name Source # | |
Defined in Network.IPFS.Name.Types | |
ToParamSchema Name Source # | |
Defined in Network.IPFS.Name.Types toParamSchema :: Proxy Name -> ParamSchema t # | |
type Rep Name Source # | |
Defined in Network.IPFS.Name.Types |
type RawMessage = ByteString Source #
Instances
Eq Peer Source # | |
Show Peer Source # | |
IsString Peer Source # | |
Defined in Network.IPFS.Peer.Types fromString :: String -> Peer # | |
ToJSON Peer Source # | |
Defined in Network.IPFS.Peer.Types | |
FromJSON 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 PlainText Peer Source # | |
Defined in Network.IPFS.Peer.Types mimeRender :: Proxy PlainText -> Peer -> ByteString # | |
MimeRender OctetStream Peer Source # | |
Defined in Network.IPFS.Peer.Types mimeRender :: Proxy OctetStream -> Peer -> ByteString # |
CID path
Exmaple
"QmcaHAFzUPRCRaUK12dC6YyhcqEEtdfg94XrPwgCxZ1ihD/myfile.txt"
Instances
Eq Path Source # | |
Ord Path Source # | |
Show Path Source # | |
IsString Path Source # | |
Defined in Network.IPFS.Path.Types fromString :: String -> Path # | |
Generic 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 PlainText Path Source # | |
Defined in Network.IPFS.Path.Types mimeRender :: Proxy PlainText -> Path -> ByteString # | |
MimeRender OctetStream Path Source # | |
Defined in Network.IPFS.Path.Types mimeRender :: Proxy OctetStream -> 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
Eq Gateway Source # | |
Show Gateway Source # | |
IsString Gateway Source # | |
Defined in Network.IPFS.Gateway.Types fromString :: String -> Gateway # | |
Generic Gateway Source # | |
FromJSON Gateway Source # | |
ToSchema Gateway Source # | |
Defined in Network.IPFS.Gateway.Types | |
type Rep Gateway Source # | |
Defined in Network.IPFS.Gateway.Types |