This directory contains the frontend service implementation and it's respective controllers.
The frontend service is intended to host api endpoints that are user facing and invoked from the UI.
frontend.go is the entry point to the service and defines what apis are to be hosted. It also creates the necessary objects (store implementations, data/feature providers, etc) that are required by the individual apis and passes them on when creating the api instances.
api directory contains individual apis that have a struct per category. Below are the currently supported apis.
API | Description |
---|---|
Alerts | Contains endpoints related to regression alert configurations |
Favorites | Contains endpoints for the Favorites feature |
Graphs | Contains endpoints that provide data and trigger actions related to plotting individual graphs |
Pinpoint | Contains endpoints related to pinpoint jobs |
Query | Contains endpoints that serve the query dialog |
Regressions | Contains endpoints related to regressions detected by the system |
Shortcuts | Contains endpoints that create and manage shortcuts |
RegisterHandlers
function in that file.RegisterHandlers
implementation and add the routes and their corresponding handlers. Once ready, add your struct implementation to the list in getFrontendApis()
in frontend.go.