How to use the moesifapi.UserModel function in moesifapi

To help you get started, we’ve selected a few moesifapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Moesif / moesif-express / lib / index.js View on Github external
/**
 * Created by Xingheng on 10/16/16.
 */

// express converts headers to lowercase
const TRANSACTION_ID_HEADER = 'x-moesif-transaction-id';

var _ = require('lodash');
var moesifapi = require('moesifapi');
var getRawBody = require('./getRawBody');
var contentType = require('content-type');
var EventModel = moesifapi.EventModel;
var UserModel = moesifapi.UserModel;
var CompanyModel = moesifapi.CompanyModel;
var requestIp = require('request-ip');
var dataUtils = require('./dataUtils');
var patch = require('./outgoing');
var createRecorder = require('./outgoingRecorder');
var createBatcher = require('./batcher');
var PassThrough = require('stream').PassThrough;
var moesifConfigManager = require('./moesifConfigManager');
var uuid4 = require('uuid4');

exports.defaultSkip = function(req, res) {
  return false;
};

//
// ### function moesifExpress(options)

moesifapi

Collection/Data Ingestion API for Moesif

Apache-2.0
Latest version published 1 month ago

Package Health Score

73 / 100
Full package analysis