Documentation
¶
Index ¶
- Variables
- func AddEvent(w http.ResponseWriter, r *http.Request)
- func AddEvents(w http.ResponseWriter, r *http.Request)
- func AddTracers(w http.ResponseWriter, r *http.Request)
- func Configure()
- func DeleteProject(w http.ResponseWriter, r *http.Request)
- func EditTracer(w http.ResponseWriter, r *http.Request)
- func GenerateTracer(w http.ResponseWriter, r *http.Request)
- func GetConfig(w http.ResponseWriter, r *http.Request)
- func GetEvents(w http.ResponseWriter, r *http.Request)
- func GetProjects(w http.ResponseWriter, r *http.Request)
- func GetRequest(w http.ResponseWriter, r *http.Request)
- func GetTracer(w http.ResponseWriter, r *http.Request)
- func GetTracers(w http.ResponseWriter, r *http.Request)
- func StartReproductions(w http.ResponseWriter, r *http.Request)
- func SwitchProject(w http.ResponseWriter, r *http.Request)
- func UpdateReproduction(w http.ResponseWriter, r *http.Request)
- func WebSocket(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
var ( // Server is the HTTP server that serves the API. Server *http.Server // Router is the router used to map all API functionality. Exposed for // testing. Router *mux.Router )
Functions ¶
func AddEvent ¶
func AddEvent(w http.ResponseWriter, r *http.Request)
AddEvent adds a tracer event to the tracer specified in the URL.
func AddEvents ¶
func AddEvents(w http.ResponseWriter, r *http.Request)
AddEvents adds multiple tracer events to the tracer specified in the URL.
func AddTracers ¶
func AddTracers(w http.ResponseWriter, r *http.Request)
AddTracers handles the HTTP API request to add a set of tracers from a Request to the database.
func Configure ¶
func Configure()
Configure configures all the HTTP routes and assigns them handler functions.
func DeleteProject ¶
func DeleteProject(w http.ResponseWriter, r *http.Request)
DeleteProject handles the HTTP API request to delete a project.
func EditTracer ¶
func EditTracer(w http.ResponseWriter, r *http.Request)
EditTracer handles the HTTP API request to edit a specific tracer specified by the URL ID.
func GenerateTracer ¶
func GenerateTracer(w http.ResponseWriter, r *http.Request)
GenerateTracer handles the HTTP API request for generating a new tracer and storing it in the database. Often used for frontend heavy applications that might start using the input right away before sending an HTTP request.
func GetConfig ¶
func GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig gets the global configuration for the application.
func GetEvents ¶
func GetEvents(w http.ResponseWriter, r *http.Request)
GetEvents gets all the events associated with a tracer ID.
func GetProjects ¶
func GetProjects(w http.ResponseWriter, r *http.Request)
GetProjects handles the HTTP API request to get all the available projects.
func GetRequest ¶
func GetRequest(w http.ResponseWriter, r *http.Request)
GetRequest handles the HTTP API request to get the tracer raw request string belonging to a specific tracer ID.
func GetTracer ¶
func GetTracer(w http.ResponseWriter, r *http.Request)
GetTracer handles the HTTP API request to get the tracer specified by an ID.
func GetTracers ¶
func GetTracers(w http.ResponseWriter, r *http.Request)
GetTracers handles the HTTP API request for getting all the tracers from the database.
func StartReproductions ¶
func StartReproductions(w http.ResponseWriter, r *http.Request)
StartReproductions handles the HTTP API request for starting a reproduction for a particular tracer and event.
func SwitchProject ¶
func SwitchProject(w http.ResponseWriter, r *http.Request)
SwitchProject handles the HTTP API request to switch between projects.
func UpdateReproduction ¶
func UpdateReproduction(w http.ResponseWriter, r *http.Request)
UpdateReproduction handles the HTTP API request for marking a reproduction test case as successful or not.
Types ¶
This section is empty.