Configurable Success Handler Action #4

Closed
opened 2024-04-08 04:18:29 +00:00 by steven · 1 comment
Owner

I'm thinking instead of trying to build out integrations directly as part of this project, we just leave it open ended and allow the success handler to run an action set in the hypd configuration file. Perhaps some common integrations could be in separate repositories.


function successHandler(srcIP string) {
    // TBD: Implement loading successActionArgs from config
    // Replace token '<srcip>' with the value of srcIP
    for i, arg := range successActionArgs {
        if arg == "<srcip>" {
            successActionArgs[i] = srcIP
        }
    }

    os.Exec(successActionArgs...)
}
I'm thinking instead of trying to build out integrations directly as part of this project, we just leave it open ended and allow the success handler to run an action set in the hypd configuration file. Perhaps some common integrations could be in separate repositories. ```golang function successHandler(srcIP string) { // TBD: Implement loading successActionArgs from config // Replace token '<srcip>' with the value of srcIP for i, arg := range successActionArgs { if arg == "<srcip>" { successActionArgs[i] = srcIP } } os.Exec(successActionArgs...) } ```
steven added the
enhancement
hypd / Server
labels 2024-04-08 04:18:29 +00:00
steven self-assigned this 2024-04-08 04:18:29 +00:00
steven added this to the dd-wrt/openwrt support project 2024-04-14 14:16:38 +00:00
steven removed this from the dd-wrt/openwrt support project 2024-04-14 14:16:46 +00:00
Author
Owner

Added in 79aa8136c5

Added in 79aa8136c50398ec45dfe818d0f29a70da1f524b
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: steven/hyp#4
No description provided.