@aurory/nestjs-k8s-leader-election
Version:
Nestjs k8s leader election
10 lines (9 loc) • 416 B
TypeScript
import { DynamicModule } from '@nestjs/common';
import { LeaderElectionOptions } from './leader-election-options.interface';
export declare class LeaderElectionModule {
static forRoot(options: LeaderElectionOptions): DynamicModule;
static forRootAsync(options: {
useFactory: (...args: any[]) => Promise<LeaderElectionOptions> | LeaderElectionOptions;
inject?: any[];
}): DynamicModule;
}