OverviewFilesCommitsIssuesDocsReleasesPeers

keet-deobfuscated / @holepunchto / keet-store / backend.js

18 lines · javascript ref:
let e = null,
  t = null
export const setBackend = ({ backendApi: o, callApi: n }) => {
  ;((e = o), (t = n))
}
export const getCoreBackend = () => e.api.core
export const getTracing = () => e.api.tracing
export const getNetworkBackend = () => e.api.network
export const getErrorBackend = () => e.api.error
export const getDebugBackend = () => e.api.debug
export const getFeedbackBackend = () => e.api.feedback
export const getPearBackend = () => e.api.pear
export const getMobileBackend = () => e.api.mobile
export const getCallApi = () => t
export const getPayApi = () => e.api.pay
export const getBackendConnectionLogs = () => e.api.connectionLogs
export const getSwarm = () => e._swarm