Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AppResources

This object contains the common resources (database, logger, etc) used by the application.

Hierarchy

  • AppResources

Implements

  • IAppResources

Index

Constructors

Properties

Constructors

constructor

  • Creates an AppResources object.

    Parameters

    • nconf: Provider

      An Nconf.Provider instance.

    • database: DatabaseModels

      An object containing database models.

    • Default value logger: ILogger = WinstonSilentLogger

      An optional Winston logger instance. If not provided will use a silent logger, disabling logging.

    • rpcServer: RPCServer

      RPC interface the application willl expose.

    Returns AppResources

Properties

database

database: DatabaseModels

An object containing database models.

logger

logger: ILogger

An optional Winston logger instance. If not provided will use a silent logger, disabling logging.

nconf

nconf: Provider

An Nconf.Provider instance.

rpcServer

rpcServer: RPCServer

RPC interface the application willl expose.

Generated using TypeDoc