Filter software for the strfry relay
Find a file
2024-07-07 22:29:29 -05:00
src initial commit 2024-07-07 22:29:29 -05:00
test initial commit 2024-07-07 22:29:29 -05:00
.gitignore initial commit 2024-07-07 22:29:29 -05:00
Cargo.lock initial commit 2024-07-07 22:29:29 -05:00
Cargo.toml initial commit 2024-07-07 22:29:29 -05:00
COPYING initial commit 2024-07-07 22:29:29 -05:00
Makefile initial commit 2024-07-07 22:29:29 -05:00
noteguard.toml initial commit 2024-07-07 22:29:29 -05:00
README.md initial commit 2024-07-07 22:29:29 -05:00

noteguard

A high performance note filter plugin system for strfry

Usage

Filters are registered and loaded from the noteguard.toml config.

You can add any new filter you want by implementing the NoteFilter trait and registering it with noteguard via the register_filter method.

The pipeline config specifies the order in which filters are run. When the first reject or shadowReject action is hit, then the pipeline stops and returns the rejection error.


pipeline = ["ratelimit"]

[filters.ratelimit]
notes_per_second = 1
whitelist = ["127.0.0.1"]