types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street   string `bson:"street" json:"street"`
	Nr       string `bson:"nr" json:"nr"`
	Postcode string `bson:"postcode" json:"postcode"`
	City     string `bson:"city" json:"city"`
}

type ContactDetailsContactData

type ContactDetailsContactData struct {
	FirstName string   `bson:"firstName" json:"firstName"`
	LastName  string   `bson:"lastName" json:"lastName"`
	Birthday  int64    `bson:"birthday" json:"birthday"`
	Email     string   `bson:"email" json:"email"`
	Phone     string   `bson:"phone" json:"phone"`
	Gender    string   `bson:"gender" json:"gender"`
	GP        *GPInfos `bson:"gp" json:"gp"`
}

type ContactDetailsGeneralData

type ContactDetailsGeneralData struct {
	Age          int    `bson:"age" json:"age"`
	Gender       string `bson:"gender" json:"gender"`
	OtherStudies bool   `bson:"otherStudies" json:"otherStudies"`
}

type ContactNote

type ContactNote struct {
	ID      string `bson:"id" json:"id"`
	Time    int64  `bson:"time" json:"time"`
	Author  string `bson:"author" json:"author"`
	Content string `bson:"content" json:"content"`
}

type DBConfig

type DBConfig struct {
	URI             string
	DBNamePrefix    string
	Timeout         int
	MaxPoolSize     uint64
	IdleConnTimeout int
}

type DatasetInfo

type DatasetInfo struct {
	ID             string   `bson:"id" json:"id"`
	SurveyKey      string   `bson:"surveyKey" json:"surveyKey"`
	Name           string   `bson:"name" json:"name"`
	ExcludeColumns []string `bson:"excludeColumns" json:"excludeColumns"`
	StartDate      int64    `bson:"startDate" json:"startDate"`
	EndDate        int64    `bson:"endDate" json:"endDate"`
}

type GPInfos

type GPInfos struct {
	Office  string  `bson:"office" json:"office"`
	Name    string  `bson:"name" json:"name"`
	Address Address `bson:"address" json:"address"`
	Phone   string  `bson:"phone" json:"phone"`
}

type NotificationSubscription

type NotificationSubscription struct {
	ID    primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Topic string             `bson:"topic" json:"topic"`
	Email string             `bson:"email" json:"email"`
}

type ParticipantContact

type ParticipantContact struct {
	ID              primitive.ObjectID         `bson:"_id,omitempty" json:"id,omitempty"`
	AddedAt         int64                      `bson:"addedAt" json:"addedAt"`
	SessionID       string                     `bson:"sessionID" json:"sessionID"`
	ParticipantID   string                     `bson:"participantID" json:"participantID"`
	KeepContactData bool                       `bson:"keepContactData" json:"keepContactData"`
	General         *ContactDetailsGeneralData `bson:"general" json:"general"`
	ContactData     *ContactDetailsContactData `bson:"contactData" json:"contactData"`
	Notes           []ContactNote              `bson:"notes" json:"notes"`
}

type SAMLConfig

type SAMLConfig struct {
	IDPUrl          string `yaml:"idp_root_url"`
	SPRootUrl       string `yaml:"sp_root_url"`
	EntityID        string `yaml:"entity_id"`
	MetaDataURL     string `yaml:"metadata_url"`
	SessionCertPath string `yaml:"session_cert"`
	SessionKeyPath  string `yaml:"session_key"`
}

type StudyInfo

type StudyInfo struct {
	ID            primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Key           string             `bson:"key" json:"key"`
	Name          string             `bson:"name" json:"name"`
	Description   string             `bson:"description" json:"description"`
	StudyColor    string             `bson:"studyColor" json:"studyColor"`
	AccessControl struct {
		Emails []string `bson:"emails" json:"emails"`
	} `bson:"accessControl" json:"accessControl"`
	Features struct {
		DatasetExporter bool `bson:"datasetExporter" json:"datasetExporter"`
		Contacts        bool `bson:"contacts" json:"contacts"`
	} `bson:"features" json:"features"`
	AvailableDatasets    []DatasetInfo `bson:"availableDatasets" json:"availableDatasets"`
	ContactFeatureConfig struct {
		IncludeWithParticipantFlags map[string]string `bson:"includeWithParticipantFlags" json:"includeWithParticipantFlags"`
	} `bson:"contactFeatureConfig" json:"contactFeatureConfig"`
}

Jump to

Keyboard shortcuts

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