Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Action *string Parameters *json.RawMessage Authorisation *cmr.Auth }
Request is an API request model. It is a mixture of client data with a data set received from the client. This object is used for API function calls between services.
type RequestHandler ¶
type RequestHandler = func(ar *Request, hr *http.Request, hrw http.ResponseWriter)
type RequestWithOnlyAction ¶
type RequestWithOnlyAction struct { // Action is a name of the function which a client wants to perform. Action *string `json:"action"` // Parameters are function parameters. Parameters *json.RawMessage `json:"parameters"` }
RequestWithOnlyAction is a data set for an API request received from a client in JSON format. This data is later mixed with additional client data.
Click to show internal directories.
Click to hide internal directories.