C++ Server-Side SDK
LaunchDarkly SDK
Public Member Functions | List of all members
launchdarkly::server_side::hooks::HookMetadata Class Reference

#include <hook.hpp>

Public Member Functions

 HookMetadata (std::string name)
 
std::string_view Name () const
 

Detailed Description

Metadata about a hook implementation.

Lifetime: Objects of this type are owned by the hook and remain valid for the lifetime of the hook.

Constructor & Destructor Documentation

◆ HookMetadata()

launchdarkly::server_side::hooks::HookMetadata::HookMetadata ( std::string  name)
explicit

Constructs hook metadata.

Parameters
nameThe name of the hook.

Member Function Documentation

◆ Name()

std::string_view launchdarkly::server_side::hooks::HookMetadata::Name ( ) const

Returns the name of the hook.

Lifetime: The returned string_view is valid only for the lifetime of this metadata object. If you need the name beyond the immediate call, copy it to a std::string.

Returns
The hook name as a string_view (immutable).

The documentation for this class was generated from the following files: