variable 'app' dump

obliquid edited this page Nov 30, 2011 · 6 revisions

a dump of the 'app' object. there is almost everything here!

app = { stack: 
   [ { route: '', handle: [Function] },
     { route: '', handle: [Function: logger] },
     { route: '', handle: [Function: bodyParser] },
     { route: '', handle: [Function: cookieParser] },
     { route: '', handle: [Function: session] },
     { route: '', handle: [Function: responseTimeout] },
     { route: '', handle: [Function] },
     { route: '', handle: [Function] },
     { route: '', handle: [Function: static] },
     { route: '', handle: [Function: errorHandler] } ],
  connections: 6,
  allowHalfOpen: true,
  watcher: { host: [Circular], callback: [Function] },
  _events: 
   { request: [Function],
     connection: [Function: connectionListener],
     listening: [Function] },
  httpAllowHalfOpen: false,
  cache: {},
  settings: 
   { env: 'development',
     hints: true,
     views: '/media/dati/lavoro/obliquid/web/node/jslardo/views',
     'view engine': 'jade' },
  redirects: {},
  isCallbacks: {},
  _locals: 
   { settings: 
      { env: 'development',
        hints: true,
        views: '/media/dati/lavoro/obliquid/web/node/jslardo/views',
        'view engine': 'jade' },
     app: [Circular],
     __i: [Function],
     __n: [Function] },
  dynamicViewHelpers: { session: [Function], app: [Function] },
  errorHandlers: [],
  route: '/',
  routes: 
   { app: [Circular],
     routes: { get: [Object], post: [Object] },
     params: {},
     _params: [],
     middleware: [Function] },
  router: [Getter],
  i18n: 
   { version: '0.3.0',
     configure: [Function],
     init: [Function],
     __: [Function],
     __n: [Function],
     setLocale: [Function],
     getLocale: [Function],
     getLocalesNames: [Function] },
  __usedRouter: true,
  jslardo: 
   { defineRoutes: [Function: defineRoutes],
     defineRoute404: [Function: defineRoute404],
     errorPage: [Function: errorPage],
     setSignedIn: [Function: setSignedIn],
     populateModel: [Function: populateModel],
     checkPermissionsOn_users: [Function: checkPermissionsOn_users],
     checkPermissionsOn_linkedservers: [Function: checkPermissionsOn_linkedservers],
     checkValidUser: [Function: checkValidUser],
     hashPw: [Function: hashPw],
     paginationInit: [Function: paginationInit],
     paginationDo: [Function: paginationDo],
     config: 
      { superadminEmail: 'federico@obliquid.it',
        superadminPw: 'admin',
        elementsPerPage: '10' },
     models: { defineModels: [Function: defineModels] },
     crypto: 
      { Credentials: [Function: Credentials],
        createCredentials: [Function],
        Hash: [Function],
        createHash: [Function],
        Hmac: [Function],
        createHmac: [Function],
        Cipher: [Function],
        createCipher: [Function],
        createCipheriv: [Function],
        Decipher: [Function],
        createDecipher: [Function],
        createDecipheriv: [Function],
        Sign: [Function],
        createSign: [Function],
        Verify: [Function],
        createVerify: [Function] },
     user: { [Function: model] modelName: 'user' },
     linkedserver: { [Function: model] modelName: 'linkedserver' } },
  type: 'tcp4',
  fd: 6 }