Skip to main content Link Search Menu Expand Document (external link)

ShardManagerClient overview

Added in v1.0.0


Table of contents


constructors

make

Signature

export declare const make: (args: Omit<ShardManagerClient, typeof ShardManagerClientTypeId>) => ShardManagerClient

Added in v1.0.0

context

ShardManagerClient

Signature

export declare const ShardManagerClient: Context.Tag<ShardManagerClient, ShardManagerClient>

Added in v1.0.0

layers

local

Signature

export declare const local: Layer.Layer<ShardManagerClient, never, ShardingConfig.ShardingConfig>

Added in v1.0.0

models

ShardManagerClient (interface)

ShardManagerClient provides the methods exposed by the ShardManager and called by the Pod.

Signature

export interface ShardManagerClient {
  readonly [ShardManagerClientTypeId]: ShardManagerClientTypeId
  readonly register: (podAddress: PodAddress.PodAddress) => Effect.Effect<void>
  readonly unregister: (podAddress: PodAddress.PodAddress) => Effect.Effect<void>
  readonly notifyUnhealthyPod: (podAddress: PodAddress.PodAddress) => Effect.Effect<void>
  readonly getAssignments: Effect.Effect<HashMap.HashMap<ShardId.ShardId, Option.Option<PodAddress.PodAddress>>>
}

Added in v1.0.0

ShardManagerClientTypeId (type alias)

Signature

export type ShardManagerClientTypeId = typeof ShardManagerClientTypeId

Added in v1.0.0

symbols

ShardManagerClientTypeId

Signature

export declare const ShardManagerClientTypeId: typeof ShardManagerClientTypeId

Added in v1.0.0