feat: update all example plugins w/ current zoraxy_plugin

ran `build_all.sh`
This commit is contained in:
Anthony Rubick
2025-09-06 16:46:11 -05:00
parent 1c84a8f9cf
commit 46f0ae6896
19 changed files with 1111 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ import (
"sync"
plugin "aroz.org/zoraxy/event-subscriber-example/mod/zoraxy_plugin"
"aroz.org/zoraxy/event-subscriber-example/mod/zoraxy_plugin/events"
)
const (
@@ -38,11 +39,11 @@ func main() {
/* Subscriptions Settings */
SubscriptionPath: "/notifyme",
SubscriptionsEvents: map[plugin.EventName]string{
SubscriptionsEvents: map[string]string{
// for this example, we will subscribe to all events that exist at time of writing
plugin.EventBlacklistedIPBlocked: "This event is triggered when a blacklisted IP is blocked",
plugin.EventBlacklistToggled: "This event is triggered when the blacklist is toggled for an access rule",
plugin.EventAccessRuleCreated: "This event is triggered when a new access ruleset is created",
string(events.EventBlacklistedIPBlocked): "This event is triggered when a blacklisted IP is blocked",
string(events.EventBlacklistToggled): "This event is triggered when the blacklist is toggled for an access rule",
string(events.EventAccessRuleCreated): "This event is triggered when a new access ruleset is created",
},
})