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 FindOneDefaultConsent ¶
func FindOneDefaultConsent(participantID string, tx *pop.Connection) (*datamodels.DefaultConsent, error)
TODO remove, make generic in consents-service/api/generics/generic_resource_utilities.go FindOneDefaultConsent returns the DefaultConsent in the database corresponding to the given Participant ID (or nil if no match is found)
func FindOneProjectConsent ¶
func FindOneProjectConsent(participantID string, projectApplicationID int32, tx *pop.Connection) (*datamodels.ProjectConsent, error)
FindOneProjectConsent returns the ProjectConsent in the database corresponding to the given Participant and ProjectApplication IDs (or nil if no match is found)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.