Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features #40

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Features #40

merged 4 commits into from
Jul 3, 2024

Conversation

croessner
Copy link
Owner

No description provided.

Christian Roessner added 4 commits June 27, 2024 12:18
The commit introduces a more efficient approach to handling Prometheus timers across several modules. A new function, `PrometheusTimer`, has been created in `statistics.go` that manages the creation and usage of Prometheus Timers. This function has been utilized across various modules to replace redundant and repetitive code. This change improves code maintainability and promotes a DRY (Don't Repeat Yourself) approach.

Signed-off-by: Christian Roessner <c@roessner.co>
The code changes reflect a simplification in the function calls to `PrometheusTimer`. Now instead of passing `stats.FunctionDuration.WithLabelValues` which included additional metrics, the function only requires the service name and task name. This results in cleaner, more readable code without unnecessary complexity.

Signed-off-by: Christian Roessner <c@roessner.co>
The callback service has been added to the server's authentication process. This addition includes setting up the authentication for the callback service as well as executing the callback in the HTTP and REST layers of the process. The callback service aims to call a generic Lua function. Future development will finalize this functionality.

Signed-off-by: Christian Roessner <c@roessner.co>
Introduce the Lua callback feature in the authentication server logic. This update refactored the setupFeaturesAndFilters function to setupLuaScripts, which now also pre-compiles Lua callbacks. Additionally, the logic for executing Lua callbacks was added to the server's REST API and integrating it into configuration handling. Errors encountered are now captured and logged.

Signed-off-by: Christian Roessner <c@roessner.co>
@croessner croessner merged commit 358f817 into main Jul 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant