@chris.troutner/ipfs-message-port-server
Version:
IPFS server library for exposing IPFS node over message port
25 lines (20 loc) • 547 B
JavaScript
/* eslint-env browser */
const { DAGService } = require('./dag')
const { CoreService } = require('./core')
const { FilesService } = require('./files')
const { BlockService } = require('./block')
/**
* @typedef {import('@chris.troutner/ipfs-core-types').IPFS} IPFS
*/
exports.IPFSService = class IPFSService {
/**
* @param {IPFS} ipfs
*/
constructor (ipfs) {
this.dag = new DAGService(ipfs)
this.core = new CoreService(ipfs)
this.files = new FilesService(ipfs)
this.block = new BlockService(ipfs)
}
}