This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
forked from adamgoose/node-red-contrib-nsq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsq-finish.html
93 lines (83 loc) · 2.79 KB
/
nsq-finish.html
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<script type="text/javascript">
RED.nodes.registerType('nsq-finish', {
category: 'output',
color: '#69c',
defaults:{
name: {value:""}
},
inputs:1,
outputs:1,
icon: "function.png",
align: "right",
label: function() {
return "nsq-finish"
}
});
RED.nodes.registerType('nsq-touch', {
category: 'output',
color: '#69c',
defaults:{
name: {value:""}
},
inputs:1,
outputs:1,
icon: "function.png",
align: "right",
label: function() {
return "nsq-touch"
}
});
RED.nodes.registerType('nsq-requeue', {
category: 'output',
color: '#69c',
defaults:{
name: {value:""},
delay: {value:"90",required:true,validate:RED.validators.number()},
backoff: {value:false}
},
inputs:1,
outputs:1,
icon: "function.png",
align: "right",
label: function() {
return this.name||("nsq-requeue (" + this.delay + "s)")
}
});
</script>
<script type="text/x-red" data-help-name="nsq-finish">
<p>Finishes an NSQ Message. Simply provide <code>msg._nsq</code>.</p>
</script>
<script type="text/x-red" data-template-name="nsq-finish">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name">
</div>
</script>
<script type="text/x-red" data-help-name="nsq-touch">
<p>Touches an NSQ Message. Simply provide <code>msg._nsq</code>.</p>
</script>
<script type="text/x-red" data-template-name="nsq-touch">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name">
</div>
</script>
<script type="text/x-red" data-help-name="nsq-requeue">
<p>Requeues an NSQ Message. Simply provide <code>msg._nsq</code>.</p>
<p>Delay is the number of seconds before NSQ will attempt to redeliver the message.</p>
<p>Backoff indicates that we should treat this as an error within this process and we need to backoff to recover.</p>
</script>
<script type="text/x-red" data-template-name="nsq-requeue">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name">
</div>
<div class="form-row">
<label for="node-input-delay"><i class="icon-tag"></i> Delay (s)</label>
<input type="number" id="node-input-delay" placeholder="90">
</div>
<div class="form-row">
<label for="node-input-backoff"><i class="icon-tag"></i> Backoff</label>
<input type="checkbox" id="node-input-backoff">
</div>
</script>