-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
51 lines (38 loc) · 1.29 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"use strict";
module.exports = function() {
var TileliveError = function(error, callback) {
this.error = error;
return setImmediate(callback, null, this);
};
TileliveError.prototype.close = function(callback) {
return callback && setImmediate(callback);
};
TileliveError.prototype.getGrid = function(z, x, y, callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.getInfo = function(callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.getTile = function(z, x, y, callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.putGrid = function(z, x, y, data, callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.putInfo = function(info, callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.putTile = function(z, x, y, data, callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.startWriting = function(callback) {
return setImmediate(callback, this.error);
};
TileliveError.prototype.stopWriting = function(callback) {
return setImmediate(callback, this.error);
};
TileliveError.registerProtocols = function() {
// noop
};
return TileliveError;
};