| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.IPFS.Types
Description
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
Constructors
| BinPath | |
Fields | |
Instances
Instances
| Eq Name Source # | |
| Ord Name Source # | |
| Show Name Source # | |
| IsString Name Source # | |
Defined in Network.IPFS.Name.Types Methods 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 | |
| Display Name Source # | |
Defined in Network.IPFS.Name.Types | |
| ToSchema Name Source # | |
Defined in Network.IPFS.Name.Types Methods declareNamedSchema :: Proxy Name -> Declare (Definitions Schema) NamedSchema # | |
| ToParamSchema Name Source # | |
Defined in Network.IPFS.Name.Types Methods 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 Methods fromString :: String -> Peer # | |
| ToJSON Peer Source # | |
Defined in Network.IPFS.Peer.Types | |
| FromJSON Peer Source # | |
| Display Peer Source # | |
Defined in Network.IPFS.Peer.Types | |
| ToSchema Peer Source # | |
Defined in Network.IPFS.Peer.Types Methods declareNamedSchema :: Proxy Peer -> Declare (Definitions Schema) NamedSchema # | |
| MimeRender PlainText Peer Source # | |
Defined in Network.IPFS.Peer.Types Methods mimeRender :: Proxy PlainText -> Peer -> ByteString # | |
| MimeRender OctetStream Peer Source # | |
Defined in Network.IPFS.Peer.Types Methods 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 Methods fromString :: String -> Path # | |
| Generic Path Source # | |
| ToHttpApiData Path Source # | |
Defined in Network.IPFS.Path.Types Methods toUrlPiece :: Path -> Text # toEncodedUrlPiece :: Path -> Builder # toHeader :: Path -> ByteString # toQueryParam :: Path -> Text # | |
| ToSchema Path Source # | |
Defined in Network.IPFS.Path.Types Methods declareNamedSchema :: Proxy Path -> Declare (Definitions Schema) NamedSchema # | |
| MimeRender PlainText Path Source # | |
Defined in Network.IPFS.Path.Types Methods mimeRender :: Proxy PlainText -> Path -> ByteString # | |
| MimeRender OctetStream Path Source # | |
Defined in Network.IPFS.Path.Types Methods 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
Constructors
| Timeout | |
Fields | |
IPFS client URL
Type safety wrapper for IPFS Gateway Used as cname value for DNS updates
Constructors
| Gateway | |
Fields
| |
Instances
| Eq Gateway Source # | |
| Show Gateway Source # | |
| IsString Gateway Source # | |
Defined in Network.IPFS.Gateway.Types Methods fromString :: String -> Gateway # | |
| Generic Gateway Source # | |
| FromJSON Gateway Source # | |
| ToSchema Gateway Source # | |
Defined in Network.IPFS.Gateway.Types Methods declareNamedSchema :: Proxy Gateway -> Declare (Definitions Schema) NamedSchema # | |
| type Rep Gateway Source # | |
Defined in Network.IPFS.Gateway.Types | |