You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/06/07 10:14:01 UTC

[GitHub] [trafficserver] brbzull0 commented on a diff in pull request #8865: JSON-RPC: Add support for handler to pass information about the specifics when registering.

brbzull0 commented on code in PR #8865:
URL: https://github.com/apache/trafficserver/pull/8865#discussion_r891036417


##########
include/ts/apidefs.h.in:
##########
@@ -1472,6 +1472,18 @@ namespace ts
 }
 #endif
 
+///
+/// @brief JSON-RPC Handler options
+///
+/// This class holds information about how a handler will be managed and delivered when called. The JSON-RPC manager would use this
+/// object to perform certain validation.
+///
+typedef struct TSRPCHandlerOptions_s {
+  struct Auth {
+    int restricted; ///< Tells the RPC Manager if the call can be delivered or not based on the config rules.
+  } auth;
+} TSRPCHandlerOptions;
+

Review Comment:
   So can be directly used from both sides(core & plugins). isn't that the point of `apidefs.h`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org