@linkedmink/node-route53-dynamic-dns
Version:
Background process that updates AWS Route 53 DNS address records whenever the public IP of the hosting environment changes
20 lines (15 loc) • 511 B
text/typescript
import type EventEmitter from "node:events";
import type { PublicIpEvent } from "../constants/events.mjs";
export interface IpAddresses {
v4: string | null;
v6: string | null;
}
export interface PublicIpState {
publicIpAddresses: IpAddresses;
lastPublicIpDateTime: Date;
}
export type PublicIpEventHandler = (event: PublicIpState) => void;
export interface PublicIpEventEmitter extends EventEmitter {
start(): Promise<void>;
on(eventName: PublicIpEvent, listener: PublicIpEventHandler): this;
}