Documentation ¶
Overview ¶
Package answers provides API services for task answers managing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubmitRequest ¶
type SubmitRequest struct { TaskToken *token.Task `json:"task_token"` Answer *string `json:"answer"` PublicKey *rsa.PublicKey }
SubmitRequest represents a JSON request body format needed by answers.submit() swagger:ignore
func (*SubmitRequest) Bind ¶
func (requestData *SubmitRequest) Bind(r *http.Request) error
Bind checks that all the needed request parameters (task_token & answer) are present and all the needed values are valid.
func (*SubmitRequest) UnmarshalJSON ¶
func (requestData *SubmitRequest) UnmarshalJSON(raw []byte) error
UnmarshalJSON loads SubmitRequest from JSON passing a public key into TaskToken
Click to show internal directories.
Click to hide internal directories.