types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 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 DBConfig

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

type NewCodeList

type NewCodeList struct {
	Codes []string `json:"codes"`
}

type SamplerConfig added in v0.2.0

type SamplerConfig struct {
	SampleFilePath      string
	TargetSamples       int // maximum sample count target
	OpenSlotsAtStart    int // number of slots open at start of the sample interval
	MaxNrOfParticipants int64
}

type ValidationCode

type ValidationCode struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Code       string             `bson:"code,omitempty" json:"code,omitempty"`
	UploadedAt int64              `bson:"uploadedAt" json:"uploadedAt"`
	UsedAt     int64              `bson:"usedAt" json:"usedAt"`
	UsedBy     string             `bson:"usedBy" json:"usedBy"`
}

Jump to

Keyboard shortcuts

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