transformers

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConsentAPIToData

func DefaultConsentAPIToData(apiDefaultConsent apimodels.DefaultConsent, participantID uuid.UUID) (*datamodels.DefaultConsent, error)

DefaultConsentAPIToData contains the model-building step of the api-model-to-data-model transformer. Since there is no Participant property contained in the DefaultConsent API model, the ParticipantID and Participant fields of the data model are not populated in this method, and must be handled seperately.

func DefaultConsentDataToAPI

func DefaultConsentDataToAPI(dataDefaultConsent datamodels.DefaultConsent) (*apimodels.DefaultConsent, error)

DefaultConsentDataToAPI contains the model-building step of the data-model-to-api-model transformer.

func ParticipantDataToAPI

func ParticipantDataToAPI(dataParticipant datamodels.Participant) (*apimodels.Participant, error)

ParticipantDataToAPI contains the model-building step of the data-model-to-api-model transformer.

func ProjectConsentDataToAPI

func ProjectConsentDataToAPI(dataProjectConsent datamodels.ProjectConsent) (*apimodels.ProjectConsent, error)

ProjectConsentDataToAPI contains the model-building step of the data-model-to-api-model transformer.

func UUIDAPIToData

func UUIDAPIToData(apiUUID strfmt.UUID, fieldName string) (*uuid.UUID, error)

UUIDAPIToData safely transforms an api-model UUID to a data-model UUID.

func UUIDDataToAPI

func UUIDDataToAPI(dataUUID uuid.UUID, fieldName string) (*strfmt.UUID, error)

UUIDDataToAPI safely transforms a data-model UUID to an api-model UUID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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