1.3.12 • Published 5 months ago
@microservice-framework/microservice v1.3.12
microservice
Microservice framework worker class.
Simple example:
'use strict';
const Cluster = require('@microservice-framework/microservice-cluster');
const Microservice = require('@microservice-framework/microservice');
require('dotenv').config();
var mservice = new Microservice({
mongoUrl: process.env.MONGO_URL + process.env.MONGO_PREFIX + process.env.MONGO_OPTIONS,
mongoTable: process.env.MONGO_TABLE,
secureKey: process.env.SECURE_KEY,
schema: process.env.SCHEMA
});
var mControlCluster = new Cluster({
pid: process.env.PIDFILE,
port: process.env.PORT,
hostname: process.env.HOSTNAME,
count: process.env.WORKERS,
callbacks: {
validate: mservice.validate,
POST: mservice.post,
GET: mservice.get,
PUT: mservice.put,
DELETE: mservice.delete,
SEARCH: mservice.search
}
});For more details please check our website
Changelog
1.3.0- open mongo connection on class init, instead of each request.1.3.1- bug fix.1.3.2- implements events error and ready.1.3.3-5- Implementing new access token validation mechanism1.3.6- fix Access-token check.1.3.7- Add ObjectID like field defenition.1.3.8- Fix removing _id from output when _id specified as field.
2.0.3
8 months ago
2.0.2
8 months ago
2.0.5
7 months ago
2.0.4
8 months ago
1.3.10
5 months ago
1.3.11
5 months ago
1.3.12
5 months ago
2.0.1
9 months ago
3.0.4
8 months ago
3.0.3
8 months ago
3.0.2
8 months ago
3.0.1
8 months ago
3.0.6
8 months ago
3.0.5
8 months ago
3.0.0
8 months ago
1.3.9
7 months ago
2.0.0
2 years ago
1.3.8
8 years ago
1.3.7
8 years ago
1.3.6
8 years ago
1.3.5
8 years ago
1.3.4
8 years ago
1.3.3
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.3.0
8 years ago
1.2.9
8 years ago
1.2.8
8 years ago
1.2.7
8 years ago
1.2.6
8 years ago
1.2.5
8 years ago
1.2.4
8 years ago
1.2.3
8 years ago
1.2.2
8 years ago
1.2.1
8 years ago
1.2.0
9 years ago
1.1.0
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago