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

ManagerConfig overview

Added in v1.0.0


Table of contents


constructors

fromConfig

Reads the ManagerConfig from the provided Config.

Signature

export declare const fromConfig: Layer.Layer<ManagerConfig, ConfigError.ConfigError, never>

Added in v1.0.0

context

ManagerConfig

Signature

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

Added in v1.0.0

models

ManagerConfig (interface)

This is the Shard Manager configuration.

Signature

export interface ManagerConfig {
  readonly numberOfShards: number
  readonly apiPort: number
  readonly rebalanceInterval: Duration.Duration
  readonly rebalanceRetryInterval: Duration.Duration
  readonly pingTimeout: Duration.Duration
  readonly persistRetryInterval: Duration.Duration
  readonly persistRetryCount: number
  readonly rebalanceRate: number
}

Added in v1.0.0

symbols

ManagerConfigTypeId

Signature

export declare const ManagerConfigTypeId: typeof ManagerConfigTypeId

Added in v1.0.0

ManagerConfigTypeId (type alias)

Signature

export type ManagerConfigTypeId = typeof ManagerConfigTypeId

Added in v1.0.0

utils

defaults

Uses the default as ManagerConfig.

Signature

export declare const defaults: Layer.Layer<ManagerConfig>

Added in v1.0.0