package
0.0.0-20220308170854-f83cb7a5233c
Repository: https://github.com/m-lab/annotation-service.git
Documentation: pkg.go.dev

# Functions

ConvertAnnotationsToClientAnnotations accepts an annotation from the v2 API and returns the equivalent annotator.ClientAnnotations structure from the uuid-annotator.
ConvertAnnotationsToServerAnnotations accepts an annotation from the v2 API and returns the equivalent annotator.ServerAnnotations structure from the uuid-annotator.
GetAnnotations takes a url, and Request, makes remote call, and returns parsed ResponseV2 TODO make this unexported once we have migrated all code to use GetAnnotator().
GetAnnotator returns a v2.Annotator that uses the provided url to make v2 api requests.
NewRequest returns a partially initialized requests.

# Constants

RequestTag is the string associated with v2.0 requests.

# Variables

ErrMoreJSON is returned if the message body was not completely consumed by decoder.
ErrStatusNotOK is returned from GetAnnotation if http status is other than OK.
************************************************************************ * Remote Annotator API * *************************************************************************/.

# Structs

Request describes the data we expect to receive (json encoded) in the request body.
RequestWrapper will be used for all future request types.
Response describes data returned in V2 responses (json encoded).

# Interfaces

Annotator defines the GetAnnotations method used for annotating.