Behaviors to initialize the applications services and execute the synchronization between the docker labels and CloudFlare.

Hierarchy (View Summary)

Constructors

Properties

loggerService: ConsoleLoggerService
stateCron: State = State.Stopped

Accessors

  • get ExecutionFrequencySeconds(): number
  • Fetches the EXECUTION_FREQUENCY_SECONDS

    Returns number

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

    Returns string

Methods

  • Initialize AppService. Initializes CloudFlare and Docker services

    Returns void

  • Fetches labels from docker. Fetches records from CloudFlare. Computes additions, updates, deletions and unchanged. Adds, Updates and Deletes entries from CloudFlare.

    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