Move 136 prototype mixins under mixins/domain, json-export, and runtime/* so the package root stays navigable. Manifest assign order is unchanged; apply-platform-mixins and runtime registry paths updated. Co-authored-by: Cursor <[email protected]>
44 lines
1.4 KiB
JavaScript
44 lines
1.4 KiB
JavaScript
'use strict'
|
|
|
|
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const relayJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{
|
|
method: '_shouldGossipDigestRelayHandoffJson',
|
|
keysField: '_digestRelayHandoffRegistryJsonGossipKeys',
|
|
initMethod: '_initDigestRelayHandoffJsonMixinState'
|
|
},
|
|
{
|
|
method: '_shouldGossipArchivePeerExportJson',
|
|
gossipHashPrefix: 'archive:',
|
|
keysField: '_archivePeerRegistryJsonGossipKeys',
|
|
initMethod: '_initArchivePeerJsonMixinState'
|
|
}
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_relayJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipDigestRelayHandoffJson',
|
|
healMethod: '_healDigestRelayHandoffJsonCursorOnPartition',
|
|
spanKind: 'relay.json',
|
|
healContext: 'heal.handoff',
|
|
countField: 'guildRelayHandoffCount',
|
|
bridgeKind: 'relay.json',
|
|
listExportsMethod: 'listDigestRelayHandoffJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_archivePeerExportHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipArchivePeerExportJson',
|
|
healMethod: '_healArchivePeerExportCursorOnPartition',
|
|
spanKind: 'relay.json',
|
|
healContext: 'heal.archive',
|
|
countField: 'guildRelayHandoffCount',
|
|
bridgeKind: 'relay.json',
|
|
listExportsMethod: 'listArchivePeerExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { relayJsonMixin }
|