Aller au contenu principal
Version: Next

ETCDServiceFactory

Hierarchy

  • ServiceFactory<Etcd3>
    • ETCDServiceFactory

Index

Constructors

constructor

Properties

etcdConfig

etcdConfig: any

logger

logger: any

Methods

createClient

  • createClient(config: IOptions): Promise<Etcd3>

createInstance

  • createInstance(config: any, clientName?: any): Promise<Etcd3>

destroyClient

  • destroyClient(client: Etcd3): Promise<void>

get

  • get<U>(id?: string): U
  • Type parameters

    • U = Etcd3

getClientKeys

  • getClientKeys(): string[]

getClientPriority

  • getClientPriority(name: string): string

getClients

  • getClients(): Map<string, Etcd3>

getDefaultClientName

  • getDefaultClientName(): string

getName

  • getName(): string

has

  • has(id: string): boolean

init

  • init(): Promise<void>

isHighPriority

  • isHighPriority(name: string): boolean

isLowPriority

  • isLowPriority(name: string): boolean

isMediumPriority

  • isMediumPriority(name: string): boolean

stop

  • stop(): Promise<void>