greenlock-express.js/single.js

26 lines
431 B
JavaScript
Raw Normal View History

2019-10-27 05:52:19 +00:00
"use strict";
require("./main.js");
var Single = module.exports;
var Servers = require("./servers.js");
Single.create = function(opts) {
2019-10-27 09:59:49 +00:00
var greenlock = require("./greenlock.js").create(opts);
2019-10-27 07:19:44 +00:00
2019-10-27 05:52:19 +00:00
var servers = Servers.create(greenlock, opts);
var single = {
worker: function(fn) {
fn(servers);
return single;
},
master: function(/*fn*/) {
// ignore
//fn(master);
return single;
}
};
return single;
};