UNPKG

graphdb

Version:

Javascript client library supporting GraphDB and RDF4J REST API.

37 lines (35 loc) 814 B
export = Service; /** * Base service class containing common and utility logic for * extending services. * * @class * @abstract * * @author Mihail Radkov * @author Svilen Velikov */ declare class Service { /** * Instantiates the service with the provided HTTP request executor function. * * @param {Function} httpRequestExecutor used to execute HTTP requests */ constructor(httpRequestExecutor: Function); httpRequestExecutor: Function; /** * Instantiates the service's logger. * * @private */ private initLogger; logger: ConsoleLogger; /** * Returns the service's name. * @abstract * * @return {string} the name */ getServiceName(): string; } import ConsoleLogger = require("../logging/console-logger");