1.0.0 • Published 7 years ago

srv-core v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

srv-core

Core functionality for server blueprint

Contains classes used by server:

  • Exception class is an Error class with inner error
  • Middleware class is a base class for binding middle-ware to Express application.
    • overwrite bindToRouter() to add functionality (body-parsers, filters, routes etc.) to provided application.
  • ResourceFactory class is a base factory class for pooled resources. Implementations of this class used as factories for generic-pool.
    • overwrite create() method to create new resource
    • overwrite destroy() method to destroy resource
    • overwrite validate() method to test resource on borrowing