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

Function client

repos/effect/packages/effect/src/unstable/cluster/Entity.ts:263–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 },
262 annotateRpcsMerge<S>(this: Entity<string, any>, annotations: Context.Context<S>) {
263 return fromRpcGroup(this.type, this.protocol.annotateRpcsMerge(annotations))
264 },
265 getShardId(this: Entity<string, any>, entityId: EntityId) {
266 return Effect.map(shardingTag, (sharding) => sharding.getShardId(entityId, this.getShardGroup(entityId)))
267 },
268 get client() {
269 return shardingTag.pipe(
270 Effect.flatMap((sharding) => sharding.makeClient(this as any))

Callers 10

Client.test.tsFile · 0.85
Client.test.tsFile · 0.85
queryFailureReasonFunction · 0.85
queryFailureReasonFunction · 0.85
queryFailureReasonFunction · 0.85
queryFailureReasonTagFunction · 0.85
ServiceFunction · 0.85
layerHttpApiFunction · 0.85
layerRpcHandlersFunction · 0.85

Calls 1

pipeMethod · 0.65

Tested by 4

queryFailureReasonFunction · 0.68
queryFailureReasonFunction · 0.68
queryFailureReasonFunction · 0.68
queryFailureReasonTagFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…