Documentation
¶
Index ¶
- Constants
- func HealthCheckHandle(c *gin.Context)
- type AddStudyCodeListEntriesRequest
- type AddStudyVariableRequest
- type AppRoleTemplateProps
- type ConfidentialResponsesExportQuery
- type ExtendSessionRequest
- type FileUploadRuleUpdateReq
- type HttpEndpoints
- func (h *HttpEndpoints) AddManagementAuthAPI(rg *gin.RouterGroup)
- func (h *HttpEndpoints) AddMessagingServiceAPI(rg *gin.RouterGroup)
- func (h *HttpEndpoints) AddStudyManagementAPI(rg *gin.RouterGroup)
- func (h *HttpEndpoints) AddUserManagementAPI(rg *gin.RouterGroup)
- func (h *HttpEndpoints) SaveScheduledEmail(c *gin.Context)
- type MergeParticipantsRequest
- type NewStudyReq
- type NotificationSubscriptionsUpdateReq
- type ParticipantEventRequest
- type RequiredPermission
- type ServiceAccountAPIKeyRequest
- type ServiceUserProps
- type SignInRequest
- type StudyDisplayPropsUpdateReq
- type StudyIsDefaultUpdateReq
- type StudyStatusUpdateReq
- type StudyUserPermissionInfo
- type SurveyInfo
- type UpdateParticipantReportRequest
- type UpdateStudyVariableDefRequest
- type UpdateStudyVariableValueRequest
Constants ¶
View Source
const (
MIN_STUDY_SECRET_KEY_LENGTH = 5
)
Variables ¶
This section is empty.
Functions ¶
func HealthCheckHandle ¶
Types ¶
type AddStudyVariableRequest ¶
type AddStudyVariableRequest struct {
VariableDef studyTypes.StudyVariables `json:"variableDef"`
}
type AppRoleTemplateProps ¶
type AppRoleTemplateProps struct {
AppName string `json:"appName"`
Role string `json:"role"`
RequiredPermissions []mUserDB.Permission `json:"requiredPermissions"`
}
type ExtendSessionRequest ¶
type ExtendSessionRequest struct {
RenewToken string `json:"renewToken"`
}
ExtendSessionRequest is the request body for the extend-session endpoint
type FileUploadRuleUpdateReq ¶
type FileUploadRuleUpdateReq struct {
SimplifiedAllow bool `json:"simplifiedAllowedUpload"`
Expression *studyTypes.Expression `json:"expression,omitempty"`
}
type HttpEndpoints ¶
type HttpEndpoints struct {
// contains filtered or unexported fields
}
func NewHTTPHandler ¶
func NewHTTPHandler( tokenSignKey string, tokenExpiresIn time.Duration, muDBConn *muDB.ManagementUserDBService, messagingDBConn *messagingDB.MessagingDBService, studyDBConn *studyDB.StudyDBService, participantUserDB *userDB.ParticipantUserDBService, globalInfosDBConn *globalinfosDB.GlobalInfosDBService, allowedInstanceIDs []string, globalStudySecret string, filestorePath string, dailyFileExportPath string, ) *HttpEndpoints
func (*HttpEndpoints) AddManagementAuthAPI ¶
func (h *HttpEndpoints) AddManagementAuthAPI(rg *gin.RouterGroup)
func (*HttpEndpoints) AddMessagingServiceAPI ¶
func (h *HttpEndpoints) AddMessagingServiceAPI(rg *gin.RouterGroup)
func (*HttpEndpoints) AddStudyManagementAPI ¶
func (h *HttpEndpoints) AddStudyManagementAPI(rg *gin.RouterGroup)
func (*HttpEndpoints) AddUserManagementAPI ¶
func (h *HttpEndpoints) AddUserManagementAPI(rg *gin.RouterGroup)
func (*HttpEndpoints) SaveScheduledEmail ¶
func (h *HttpEndpoints) SaveScheduledEmail(c *gin.Context)
type NewStudyReq ¶
type NotificationSubscriptionsUpdateReq ¶
type NotificationSubscriptionsUpdateReq struct {
Subscriptions []studyTypes.NotificationSubscription `json:"subscriptions"`
}
type ParticipantEventRequest ¶
type RequiredPermission ¶
type ServiceAccountAPIKeyRequest ¶
type ServiceAccountAPIKeyRequest struct {
ExpiresAt int64 `json:"expiresAt,omitempty"`
}
type ServiceUserProps ¶
type SignInRequest ¶
type SignInRequest struct {
Sub string `json:"sub"`
Roles []string `json:"roles"`
Name string `json:"name"`
Provider string `json:"provider"`
Email string `json:"email"`
ImageURL string `json:"imageUrl"`
RenewToken string `json:"renewToken"`
InstanceID string `json:"instanceId"`
}
SignInRequest is the request body for the signin-with-idp endpoint
type StudyDisplayPropsUpdateReq ¶
type StudyDisplayPropsUpdateReq struct {
Name []studyTypes.LocalisedObject `bson:"name" json:"name"`
Description []studyTypes.LocalisedObject `bson:"description" json:"description"`
Tags []studyTypes.Tag `bson:"tags" json:"tags"`
}
type StudyIsDefaultUpdateReq ¶
type StudyIsDefaultUpdateReq struct {
IsDefault bool `json:"isDefault"`
}
type StudyStatusUpdateReq ¶
type StudyStatusUpdateReq struct {
Status string `json:"status"`
}
type StudyUserPermissionInfo ¶
type StudyUserPermissionInfo struct {
User *managementuser.ManagementUser `json:"user"`
Permissions []managementuser.Permission `json:"permissions"`
}
type SurveyInfo ¶
type SurveyInfo struct {
Key string `json:"key"`
}
type UpdateParticipantReportRequest ¶
type UpdateParticipantReportRequest struct {
Data []studyTypes.ReportData `json:"data"`
Mode dbStudy.UpdateParticipantReportMode `json:"mode"`
}
type UpdateStudyVariableDefRequest ¶
type UpdateStudyVariableDefRequest struct {
VariableDef studyTypes.StudyVariables `json:"variableDef"` // ignore value and key fields
}
type UpdateStudyVariableValueRequest ¶
type UpdateStudyVariableValueRequest struct {
Variable studyTypes.StudyVariables `json:"variable"` // only value is updated
}
Click to show internal directories.
Click to hide internal directories.