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

Function layerCosmos

packages/infra/src/ClusterCosmos.ts:1111–1118  ·  view source on GitHub ↗
(config: ClusterCosmosConfig)

Source from the content-addressed store, hash-verified

1109> => Layer.merge(layerMessageStorage(options), layerRunnerStorage(options))
1110
1111export const layerCosmos = (config: ClusterCosmosConfig): Layer.Layer<
1112 MessageStorage.MessageStorage | RunnerStorage.RunnerStorage,
1113 never,
1114 ShardingConfig.ShardingConfig
1115> =>
1116 layerStorage({ prefix: config.prefix }).pipe(
1117 Layer.provide(CosmosClientLayer(Redacted.value(config.url), config.dbName))
1118 )

Callers 5

layerForFunction · 0.50
clusterRpcLayerFunction · 0.50
clusterWorkflowLayerFunction · 0.50
adapterLayerFunction · 0.50

Calls 5

CosmosClientLayerFunction · 0.90
layerStorageFunction · 0.70
pipeMethod · 0.65
valueMethod · 0.65
provideMethod · 0.45

Tested by 4

layerForFunction · 0.40
clusterRpcLayerFunction · 0.40
clusterWorkflowLayerFunction · 0.40
adapterLayerFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…