conduit 0.6.0
Modern C++23 header-only event-dispatching / event-transport library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
conduit::EventTypeInfo Struct Reference

Identity + shape for one registered event type. More...

#include <event_type_registry.hpp>

Collaboration diagram for conduit::EventTypeInfo:
Collaboration graph
[legend]

Public Member Functions

parcel::DisplayInfo display_info () const
 Cell-level display info, lifted straight from the descriptor.
 
parcel::json_t schema () const
 Per-type JSON schema: {kind, display_info, category, fields:[…]}.
 

Public Attributes

std::string_view name
 Bare event name, e.g. "order.created".
 
std::string_view kind_id
 Full wire kind, e.g. "conduit:event:order.created".
 
parcel::cell_type_descriptor_t descriptor
 

Detailed Description

Identity + shape for one registered event type.

The string views and the descriptor handle all have program lifetime (the descriptor is cached in a function-local static; the views point into T::kind_id storage), so an EventTypeInfo is safe to copy and outlive the call that produced it.

Member Function Documentation

◆ display_info()

parcel::DisplayInfo conduit::EventTypeInfo::display_info ( ) const
inline

Cell-level display info, lifted straight from the descriptor.

◆ schema()

parcel::json_t conduit::EventTypeInfo::schema ( ) const
inline

Per-type JSON schema: {kind, display_info, category, fields:[…]}.

Member Data Documentation

◆ descriptor

parcel::cell_type_descriptor_t conduit::EventTypeInfo::descriptor

◆ kind_id

std::string_view conduit::EventTypeInfo::kind_id

Full wire kind, e.g. "conduit:event:order.created".

◆ name

std::string_view conduit::EventTypeInfo::name

Bare event name, e.g. "order.created".


The documentation for this struct was generated from the following file: