Hierarchy (View Summary)

Constructors

Properties

loggerService: ConsoleLoggerService
stateCron: State = State.Stopped

Accessors

  • get ExecutionFrequencySeconds(): number
  • Fetches the execution frequency for the Ddns service from the configuration

    Returns number

  • get ServiceName(): string
  • ServiceName used in logging present in CronService

    Returns string

Methods

  • NOTE! intentionally not a property as createMock behaves incorrectly

    Returns the current public IP Address. Will be undefined if not loaded

    Returns undefined | string

  • NOTE! intentionally not a property as createMock behaves incorrectly

    Exposes the state of the cron service. Used to determine if it should be started as DDNS could be enabled at any time.

    Returns State

  • Determines if any of the supplied entries are set to DDNS type. If so returns true, else false.

    Parameters

    Returns boolean

  • Fetches the current public IP address and updates the state. Will warn and leave ip unchanged if failure to fetch.

    Returns Promise<void>

  • Starts the CRON Job executing. Will execute "synchronise" immediately on invocation and then every x seconds as distated by the environment variable EXECUTION_FREQUENCY_SECONDS.

    Returns Promise<void>

    If service is already started