package
0.1.3
Repository: https://github.com/src-d/code-annotation.git
Documentation: pkg.go.dev

# Functions

APIHandlerFunc returns an http.HandlerFunc that will serve the user request taking the serializer.Response and errors from the passed RequestProcessFunc.
CreateExperiment returns a function that saves the experiment as passed in the body request.
GetAssignmentsForUserExperiment returns a function that returns a *serializer.Response with the assignments for the logged user and a passed experiment if these assignments do not already exist, they are created in advance.
GetExperimentDetails returns a function that returns a *serializer.Response with the details of a requested experiment.
GetExperiments returns a function that returns a *serializer.Response with the list of existing experiments.
GetFeatures returns a function that returns a *serializer.Response with the list of features for blobId.
GetFilePairAnnotations returns a function that returns a *serializer.Response with the Annotation results for the given File Pair and Experiment IDs.
GetFilePairDetails returns a function that returns a *serializer.Response with the details of the requested FilePair.
GetFilePairs returns a function that returns a *serializer.Response with the list of file pairs for the given experiment ID.
Login handler redirects user to oauth provider.
Me handler returns a function that returns a *serializer.Response with the information about the current user.
NewExport creates new Export.
NewStatic creates new Static.
OAuthCallback makes exchange with oauth provider, gets&creates user and redirects to index page with JWT token.
SaveAssignment returns a function that saves the user answers as passed in the body request.
UpdateExperiment returns a function that updates the experiment as passed in the body request.
UploadFilePairs returns a function that imports file pair from import db file to the experiment.
Version returns a function that returns a *serializer.Response with a current version of server.

# Structs

Export contains handlers for file export.
Static contains handlers to serve static using go-bindata.

# Type aliases

RequestProcessFunc is a function that takes an http.Request, and returns a serializer.Response and an error.