|
C++ Server-Side SDK
LaunchDarkly SDK
|
#include <hook.hpp>

Public Member Functions | |
| virtual HookMetadata const & | Metadata () const =0 |
| virtual EvaluationSeriesData | BeforeEvaluation (EvaluationSeriesContext const &series_context, EvaluationSeriesData data) |
| virtual EvaluationSeriesData | AfterEvaluation (EvaluationSeriesContext const &series_context, EvaluationSeriesData data, EvaluationDetail< Value > const &detail) |
| virtual void | AfterTrack (TrackSeriesContext const &series_context) |
Base interface for hook implementations.
All stage methods have default implementations that take no action, allowing hook implementations to only override the stages they need.
This interface is designed for forward compatibility - new stages can be added without breaking existing hook implementations.
IMPORTANT LIFETIME CONSIDERATIONS:
|
virtual |
Called after a flag has been evaluated.
| series_context | Context for this evaluation (valid only during this call). |
| data | Data from the before stage. |
| detail | The evaluation result. |
Reimplemented in launchdarkly::server_side::bindings::CHookWrapper.
|
virtual |
Called after a custom event has been enqueued via Track.
| series_context | Context for this track call (valid only during this call). |
Reimplemented in launchdarkly::server_side::bindings::CHookWrapper.
|
virtual |
Called before a flag is evaluated.
| series_context | Context for this evaluation (valid only during this call). |
| data | Data from previous stage (empty for first stage). |
Reimplemented in launchdarkly::server_side::bindings::CHookWrapper.
|
pure virtual |
Returns metadata about this hook.
Implemented in launchdarkly::server_side::bindings::CHookWrapper.