MCPcopy Create free account
hub / github.com/effect-app/libs / cosmosId

Function cosmosId

packages/infra/src/ClusterCosmos.ts:112–112  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

110const withTracerDisabled = Effect.withTracerEnabled(false)
111const refailPersistence = <A, E, R>(effect: Effect.Effect<A, E, R>) => PersistenceError.refail(effect)
112const cosmosId = (id: string) => encodeURIComponent(id)
113const messagePartition = (shardId: string) => `message::${shardId}`
114const messageDocId = (envelope: Envelope.Encoded, primaryKey: string | null) =>
115 cosmosId(primaryKey === null ? envelopeId(envelope) : `primary::${primaryKey}`)

Callers 7

messageDocIdFunction · 0.70
runnerDocIdFunction · 0.70
lockDocIdFunction · 0.70
envelopeToDocFunction · 0.70
replyToDocFunction · 0.70
ClusterCosmos.tsFile · 0.70
markReplyAckedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…