Documentation ¶
Overview ¶
Package utilities implements general-purpose utility functions for use by the restapi handlers.
Index ¶
- func ConnectDevelopment(HTTPRequest *http.Request) (*pop.Connection, *apimodels.Error)
- func GetCalls(params operations.GetCallsParams, tx *pop.Connection) (*pop.Query, middleware.Responder)
- func GetIndividuals(params operations.GetIndividualsParams, tx *pop.Connection) (*pop.Query, middleware.Responder)
- func GetVariants(params operations.GetVariantsParams, tx *pop.Connection) (*pop.Query, middleware.Responder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDevelopment ¶
ConnectDevelopment connects to the development database and returns the connection and/or error message
func GetCalls ¶
func GetCalls(params operations.GetCallsParams, tx *pop.Connection) (*pop.Query, middleware.Responder)
GetCalls builds an Calls-specific query out of the given parameters. Since there are presently no parameters expected for this request, it simply returns all Calls.
func GetIndividuals ¶
func GetIndividuals(params operations.GetIndividualsParams, tx *pop.Connection) (*pop.Query, middleware.Responder)
GetIndividuals builds an Individuals-specific query out of the given parameters. Since there are presently no parameters expected for this request, it simply returns all Individuals.
func GetVariants ¶
func GetVariants(params operations.GetVariantsParams, tx *pop.Connection) (*pop.Query, middleware.Responder)
GetVariants builds an Individuals-specific query out of the given parameters. It rejects get-all requests, as such a request would, in a production service, return a prohibitively large amount of data and would likely only be entered in error or in malice. May return a 403: Forbidden response.
Types ¶
This section is empty.