Skip to content

Runner

4 exports Added in v1.0.0 Source

Constructors

make

Added in v1.0.0 Source

A Runner represents a physical application server that is capable of running entities.

Because a Runner represents a physical application server, a Runner must have a unique address which can be used to communicate with the server.

The version of a Runner is used during rebalancing to give priority to newer application servers and slowly decommission older ones.

Signature

declare function make(props: {
  readonly address: RunnerAddress;
  readonly groups: readonly Array<string>;
  readonly weight: number;
}): Runner

Models

Runner

Added in v1.0.0 Source

A Runner represents a physical application server that is capable of running entities.

Because a Runner represents a physical application server, a Runner must have a unique address which can be used to communicate with the server.

The version of a Runner is used during rebalancing to give priority to newer application servers and slowly decommission older ones.

Signature

declare class Runner extends ReadonlySide<
  {
    readonly address: typeof RunnerAddress;
    readonly groups: $Array<String>;
    readonly weight: Number;
  },
  "Type"
> {
  constructor(
    ...args: [
      props: ReadonlyMakeIn<{
        readonly address: typeof RunnerAddress;
        readonly groups: $Array<String>;
        readonly weight: Number;
      }>,
      options?: MakeOptions,
    ]
  );
  readonly [TypeId]: symbol;
  static readonly decodeSync: (input: any, options?: ParseOptions) => any;
  static readonly encodeSync: (input: any, options?: ParseOptions) => any;
  static pretty: any;
  [NodeInspectSymbol](): string;
  "~effect/interfaces/Equal"(that: Runner): boolean;
  "~effect/interfaces/Hash"(): number;
}

Type Ids

TypeId

Added in v1.0.0 Source

Signature

declare const TypeId: unique symbol;

TypeId type

Added in v1.0.0 Source

Signature

type TypeId = typeof TypeId;