Documentation ¶
Index ¶
- func AddEvent(tracer types.Tracer, event types.TracerEvent) ([]byte, error)
- func AddEventData(eventData string) (types.RawEvent, error)
- func AddSubscriber(conn *websocket.Conn) int
- func AddTracer(request types.Request) ([]byte, error)
- func ChangeTracer(key, tracer int)
- func DeleteProject(p string) error
- func EditTracer(tracer types.Tracer, id uint) ([]byte, error)
- func GetConfig() ([]byte, error)
- func GetEvents(tracerID uint) ([]byte, error)
- func GetProjects() ([]byte, error)
- func GetTracer(tracerID uint) ([]byte, error)
- func GetTracerRequest(tracerID uint) ([]byte, error)
- func GetTracers() ([]byte, error)
- func RemoveSubscriber(key int)
- func ServerError(err error) []byte
- func StartReproductions(tracerID, contextID uint)
- func SwitchProject(p string) error
- func UpdateReproduction(tracerID, contextID, reproID uint, repro types.ReproductionTest) error
- func UpdateSubscribers(update interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventData ¶
AddEventData adds a raw event if it's the first of that type of event, Otherwise, it returns the first event that looks like it. It also tags the raw data as either HTML or JSON.
func AddSubscriber ¶
AddSubscriber takes a websocket connection and adds it to the list of subscribers. New events that happen in package common get pushed these events.
func ChangeTracer ¶
func ChangeTracer(key, tracer int)
ChangeTracer changes the tracer to send event updates for.
func DeleteProject ¶
DeleteProject closes the currently opened database, and deletes the file associated with it.
func EditTracer ¶
EditTracer updates a tracer in the database.
func GetEvents ¶
GetEvents is the common functionality for getting all the events for a given tracer ID from the database.
func GetProjects ¶
GetProjects queries the tracy path for all the available database files and returns the names of the files.
func GetTracer ¶
GetTracer is the common functionality to get a tracer from the database by it's ID.
func GetTracerRequest ¶
GetTracerRequest gets the raw request for the tracer specified by an ID.
func GetTracers ¶
GetTracers is the common functionality to get all the tracers from database.
func RemoveSubscriber ¶
func RemoveSubscriber(key int)
RemoveSubscriber removes the websocket from the list of subscribers.
func ServerError ¶
ServerError is the common function for logging an internal server error and serving back something generic.
func StartReproductions ¶
func StartReproductions(tracerID, contextID uint)
StartReproductions makes the raw HTTP request that initatied the tracer, then sends off the event to the extension via websocket to be completed by the extension.
func SwitchProject ¶
SwitchProject closes the currently opened database, sets the new database file and opens it.
func UpdateReproduction ¶
func UpdateReproduction(tracerID, contextID, reproID uint, repro types.ReproductionTest) error
UpdateReproduction changes the status of a tracer event to reproduced. This should only happen once the extensions injected script is called from one of its reproduction tabs.
func UpdateSubscribers ¶
func UpdateSubscribers(update interface{})
UpdateSubscribers sends an update to all the subscribers.
Types ¶
This section is empty.