utilities

package
v0.0.0-...-5da7351 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package utilities implements general-purpose utility functions for use by the restapi handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDevelopment

func ConnectDevelopment(HTTPRequest *http.Request) (*pop.Connection, *apimodels.Error)

ConnectDevelopment connects to the development database and returns the connection and/or error message

func GetCalls

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL