2021-01-12 09:56:37 +00:00
|
|
|
import pkg/chronos
|
|
|
|
|
|
|
|
type
|
2021-01-14 13:04:04 +00:00
|
|
|
Ipfs* = ref object
|
2021-01-12 09:56:37 +00:00
|
|
|
|
2021-01-14 13:04:04 +00:00
|
|
|
proc create*(t: typedesc[Ipfs]): Ipfs =
|
|
|
|
Ipfs()
|
2021-01-12 09:56:37 +00:00
|
|
|
|
2021-01-14 13:04:04 +00:00
|
|
|
proc listen*(peer: Ipfs, address: TransportAddress) =
|
2021-01-12 09:56:37 +00:00
|
|
|
discard
|
|
|
|
|
2021-01-14 13:04:04 +00:00
|
|
|
proc connect*(peer: Ipfs, address: TransportAddress) =
|
2021-01-12 09:56:37 +00:00
|
|
|
discard
|
|
|
|
|
2021-01-14 13:04:04 +00:00
|
|
|
proc add*(peer: Ipfs, input: File): Future[string] {.async.} =
|
2021-01-12 09:56:37 +00:00
|
|
|
discard
|
|
|
|
|
2021-01-14 13:04:04 +00:00
|
|
|
proc get*(peer: Ipfs, identifier: string, output: File) {.async.} =
|
2021-01-12 09:56:37 +00:00
|
|
|
discard
|
|
|
|
|
2021-01-14 13:04:04 +00:00
|
|
|
proc stop*(peer: Ipfs) =
|
2021-01-12 09:56:37 +00:00
|
|
|
discard
|