Feature: add abstract and factory classes for overload controller module by weimch · Pull Request #134 · trpc-group/trpc-cpp

@weimch

@weimch

helloopenworld

/// @return bool true: succ; false: failed
virtual bool Init() { return true; }

/// @brief Pre handle the request

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intercept request before recv request into queue?

helloopenworld

/// @return bool true: succ;false: failed
virtual bool OnRequest(const ServerContextPtr& context) = 0;

/// @brief Post handle of after server handling request.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get request from queue before handle request?

@weimch

helloopenworld

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve