Raxol.Core.Utils.GenServerHelpers (Raxol v2.0.1)
View SourceCommon GenServer patterns and utilities to reduce code duplication. Provides standardized handlers for common operations like state retrieval, metrics collection, and configuration management.
Summary
Functions
Standard handler for getting specific state fields.
Standard handler for getting metrics from state.
Standard handler for getting state information.
Standard handler for getting status information.
Standard handler for resetting metrics.
Standard handler for updating configuration.
Utility to increment a metric counter.
Initialize default state with common fields.
Utility to update a metric value.
Functions
Standard handler for getting specific state fields.
Standard handler for getting metrics from state.
Standard handler for getting state information.
Standard handler for getting status information.
Standard handler for resetting metrics.
Standard handler for updating configuration.
@spec increment_metric(map(), atom(), non_neg_integer()) :: map()
Utility to increment a metric counter.
Initialize default state with common fields.
Utility to update a metric value.