Vsevolod Stakhov
662145d055
[Minor] Reformat all Lua code, no functional changes
3 years ago
Vsevolod Stakhov
cac6696192
[Feature] Add controller endpoint to get fuzzy hashes from messages
Sample usage:
```
curl -XPOST 'http://localhost:11334/plugins/fuzzy/hashes?flag=1 ' --data-binary '@-' < file
```
Sample output:
```json
{
"hashes": {
"local": [
"24b6e7de2f489778d828c827079c48bacb086f816d0a7acabbe42e8d0da703b89b913176ad67eefaf5b54fa59f5e0ecfc7015846c4043fcfb0c7a4ed7a235025",
"72789777cbec926f4143de4c08c87acc3fbf3b909b5c39f1edcf82ed12e2d8bc2f56be8d68ee681feccf44ca04e3eca5b8ec039cb84a0d40e22258c370a10cbb"
],
"rspamd.com": [
"24b6e7de2f489778d828c827079c48bacb086f816d0a7acabbe42e8d0da703b89b913176ad67eefaf5b54fa59f5e0ecfc7015846c4043fcfb0c7a4ed7a235025",
"72789777cbec926f4143de4c08c87acc3fbf3b909b5c39f1edcf82ed12e2d8bc2f56be8d68ee681feccf44ca04e3eca5b8ec039cb84a0d40e22258c370a10cbb"
],
},
"success": true
}
```
Issue: #4489
3 years ago
Vsevolod Stakhov
2fa0e126c7
[Minor] Update my email and the copyright year
4 years ago
Andrew Lewis
b7e3440024
[Feature] JSON endpoint for querying maps
4 years ago
Andrew Lewis
794bb6c241
[Fix] Avoid reinitialising neural settings
5 years ago
Andrew Lewis
960b608d35
[Feature] Add controller endpoint for training neural
- Move neural functions to library
- Parameterise spawn_train
- neural plugin: Fix store_pool_only when autotrain is true
- neural plugin: Use cache_set instead of mempool
- Add test
5 years ago
Vsevolod Stakhov
c8d46c6400
[Minor] Improve maps query API
5 years ago
Vsevolod Stakhov
8f8d62fc0d
[Minor] Pet luacheck
6 years ago
Vsevolod Stakhov
d8a7818f0e
[Feature] Add query_specific endpoint
6 years ago
Vsevolod Stakhov
b00eb164fb
[Feature] Add maps query method
6 years ago
Vsevolod Stakhov
f860d55ac4
[Feature] Preliminary maps addon for controller
6 years ago
moisseev
25870a7895
[Minor] Fix missing selector check
6 years ago
moisseev
8e162998ac
[Minor] Fix HTTP status code
We should treat invalid selector as a negative result of the check.
6 years ago
Vsevolod Stakhov
afe627edab
[Feature] Add controller plugins support and selectors plugin
6 years ago