types

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

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

type FileInfo added in v0.2.0

type FileInfo struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Path       string             `bson:"path,omitempty" json:"path,omitempty"`
	UploadedAt int64              `bson:"uploadedAt,omitempty" json:"uploadedAt,omitempty"`
	FileType   string             `bson:"fileType,omitempty" json:"fileType,omitempty"`
	Name       string             `bson:"name,omitempty" json:"name,omitempty"`
	Size       int32              `bson:"size,omitempty" json:"size,omitempty"`
}

type Image added in v0.2.0

type Image struct {
	URL       string `bson:"url,omitempty" json:"url,omitempty"`
	Copyright string `bson:"copyright,omitempty" json:"copyright,omitempty"`
}

type LPPParticipant added in v0.4.0

type LPPParticipant struct {
	ID                  primitive.ObjectID          `bson:"_id,omitempty" json:"id,omitempty"`
	PID                 string                      `bson:"pid,omitempty" json:"pid,omitempty"`
	InvitationSentAt    time.Time                   `bson:"invitationSentAt" json:"invitationSentAt"`
	RemindAfter         time.Time                   `bson:"remindAfter" json:"remindAfter"`
	ReminderSentAt      time.Time                   `bson:"reminderSentAt" json:"reminderSentAt"`
	Submissions         map[string]time.Time        `bson:"submissions" json:"submissions"`
	ContactInfos        *LPPParticipantContactInfos `bson:"contactInfos" json:"contactInfos,omitempty"`
	Cohort              string                      `bson:"cohort" json:"cohort"`
	StudyData           map[string]string           `bson:"studyData" json:"studyData"`
	TempParticipantInfo *TempParticipantInfo        `bson:"tempParticipantInfo" json:"tempParticipantInfo"`
}

type LPPParticipantContactInfos added in v0.4.0

type LPPParticipantContactInfos struct {
	Email string `bson:"email" json:"email"`
	Name  string `bson:"name" json:"name"`
}
type Link struct {
	Title         string `bson:"title,omitempty" json:"title,omitempty"`
	Description   string `bson:"description,omitempty" json:"description,omitempty"`
	Image         Image  `bson:"image,omitempty" json:"image,omitempty"`
	ImagePosition string `bson:"imagePosition,omitempty" json:"imagePosition,omitempty"` //e.g. top left background
	LinkText      string `bson:"linkText,omitempty" json:"linkText,omitempty"`
	URL           string `bson:"url,omitempty" json:"url,omitempty"`
}

type NewsItem added in v0.2.0

type NewsItem struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Path    string             `bson:"path,omitempty" json:"path,omitempty"`
	Time    int64              `bson:"time,omitempty" json:"time,omitempty"`
	Status  string             `bson:"status,omitempty" json:"status,omitempty"`
	Content []NewsItemContent  `bson:"content,omitempty" json:"content,omitempty"`
}

type NewsItemContent added in v0.2.0

type NewsItemContent struct {
	Language    string       `bson:"language,omitempty" json:"language,omitempty"`
	Title       string       `bson:"title,omitempty" json:"title,omitempty"`
	Image       Image        `bson:"image,omitempty" json:"image,omitempty"`
	MarkdownURL string       `bson:"markdown,omitempty" json:"markdown,omitempty"`
	Links       []Link       `bson:"links,omitempty" json:"links,omitempty"`
	Overview    OverviewInfo `bson:"overview,omitempty" json:"overview,omitempty"`
}

type OverviewInfo added in v0.2.0

type OverviewInfo struct {
	Title       string `bson:"title,omitempty" json:"title,omitempty"`
	Description string `bson:"description,omitempty" json:"description,omitempty"`
	Image       Image  `bson:"image,omitempty" json:"image,omitempty"`
}

type ReportMapData

type ReportMapData struct {
	Slider TimeSlider          `json:"slider"`
	Series [][]TickBiteMapData `json:"series"`
}

type TempParticipantInfo added in v0.4.0

type TempParticipantInfo struct {
	ID        string `bson:"id" json:"id"`
	EnteredAt int64  `bson:"enteredAt" json:"enteredAt"`
}

type TickBiteMapData

type TickBiteMapData struct {
	Time int64   `bson:"time,omitempty" json:"time,omitempty"`
	Lng  float64 `bson:"lng" json:"lng"`                       //longitude
	Lat  float64 `bson:"lat" json:"lat"`                       //latitude
	Type string  `bson:"type,omitempty" json:"type,omitempty"` //example: "TB"

}

type TimeSlider

type TimeSlider struct {
	MinLabel string   `json:"minLabel"`
	MaxLabel string   `json:"maxLabel"`
	Labels   []string `json:"labels"`
}

Jump to

Keyboard shortcuts

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