MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeEntry

Function makeEntry

packages/effect/test/unstable/eventlog/EventLogRemote.test.ts:137–146  ·  view source on GitHub ↗
(options?: {
  readonly primaryKey?: string | undefined
  readonly payloadSize?: number | undefined
})

Source from the content-addressed store, hash-verified

135})
136
137const makeEntry = (options?: {
138 readonly primaryKey?: string | undefined
139 readonly payloadSize?: number | undefined
140}): EventJournal.Entry =>
141 new EventJournal.Entry({
142 id: EventJournal.makeEntryIdUnsafe(),
143 event: "UserCreated",
144 primaryKey: options?.primaryKey ?? "user-1",
145 payload: new Uint8Array(options?.payloadSize ?? 4).fill(1)
146 })
147
148const defaultStoreId = EventLogMessage.StoreId.make("default")
149const remoteId = EventJournal.makeRemoteIdUnsafe()

Callers 3

addEntryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected