// site-service.js // Copyright (C) 2021 Digital Telepresence, LLC // License: Apache-2.0 'use strict'; const path = require('path'); const { SiteCommon } = require(path.join(__dirname, 'site-common')); const { SiteLog } = require(path.join(__dirname, 'site-log')); class SiteService extends SiteCommon { constructor (dtp, definition) { super(dtp); this.slug = definition.slug; this.name = definition.name; this.log = new SiteLog(dtp, `svc:${this.slug}`); } async start ( ) { this.log.debug(`starting ${this.name} service`); } async stop ( ) { this.log.debug(`stopping ${this.name} service`); } } module.exports.SiteService = SiteService;