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

Function layerEncryptedWith

packages/effect/src/eventlog/EventLogRemote.ts:757–767  ·  view source on GitHub ↗
(options: {
  readonly compaction?: boolean | undefined
})

Source from the content-addressed store, hash-verified

755 * @since 4.0.0
756 */
757export const layerEncryptedWith = (options: {
758 readonly compaction?: boolean | undefined
759}): Layer.Layer<
760 EventLogRemote,
761 EventLogRemoteError,
762 RpcClient.Protocol | Registry
763> =>
764 Layer.effect(EventLogRemote, makeEncryptedWith(options)).pipe(
765 Layer.provide(EventLogRemoteClient.layer),
766 Layer.provide(layerSubtle)
767 )
768
769/**
770 * Provides an encrypted `EventLogRemote` using the remote RPC client and the

Callers 1

EventLogRemote.tsFile · 0.85

Calls 2

pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected