Reference Source

lib/frontier/modes.js

  1. /*
  2. Squidwarc Copyright (C) 2017-present John Berlin <n0tan3rd@gmail.com>
  3.  
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8.  
  9. Squidwarc is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with this Squidwarc. If not, see <http://www.gnu.org/licenses/>
  16. */
  17.  
  18. /**
  19. * @desc Symbol representing the page only crawl mode
  20. * @type {symbol}
  21. */
  22. const cmodePO = Symbol('page-only')
  23.  
  24. /**
  25. * @desc Symbol representing the page same domain crawl mode
  26. * @type {symbol}
  27. */
  28. const cmodePSD = Symbol('page-same-domain')
  29.  
  30. /**
  31. * @desc Symbol representing the page all links crawl mode
  32. * @type {symbol}
  33. */
  34. const cmodePAL = Symbol('page-all-links')
  35.  
  36. /**
  37. * @desc Crawl modes as symbols
  38. * @type {{cmodePO: Symbol, cmodePSD: Symbol, cmodePAL: Symbol}}
  39. */
  40. module.exports = {
  41. cmodePO,
  42. cmodePSD,
  43. cmodePAL
  44. }