rest

package
v0.0.0-...-a3451e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

func WebSocket

func WebSocket(w http.ResponseWriter, r *http.Request)

WebSocket is the websocket handler for the HTTP API. */

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL