utilities

package
v0.0.0-...-e2e76ad Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: AGPL-3.0 Imports: 3 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 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.

Jump to

Keyboard shortcuts

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