Documentation ¶
Index ¶
- Constants
- type SelfSwabbingExtDBService
- func (dbService *SelfSwabbingExtDBService) AddEntryCode(instanceID string, entryCode string) (string, error)
- func (dbService *SelfSwabbingExtDBService) CancelSlotReservation(instanceID string, participantID string) error
- func (dbService *SelfSwabbingExtDBService) CleanUpExpiredSlotReservations(instanceID string) error
- func (dbService *SelfSwabbingExtDBService) ConfirmSlot(instanceID string, participantID string) error
- func (dbService *SelfSwabbingExtDBService) CountUsedCodes(instanceID string) (count int64, err error)
- func (dbService *SelfSwabbingExtDBService) CreateIndexForEntryCodes(instanceID string) error
- func (dbService *SelfSwabbingExtDBService) CreateIndexesForIgasonderzoek()
- func (dbService *SelfSwabbingExtDBService) CreateIndexesForSampler(instanceID string)
- func (dbService *SelfSwabbingExtDBService) FindEntryCodeInfo(instanceID string, code string) (entryCode types.ValidationCode, err error)
- func (dbService *SelfSwabbingExtDBService) GetUsedSlotsCountSince(instanceID string, ref int64) (count int64, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekAddControlCode(code string) (string, error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekAddControlContact(contact types.IgasonderzoekControlRegistration) (string, error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekDeleteContactsBefore(before int64) (count int64, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekDeleteControlCode(code string) (count int64, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekDeleteControlCodesBefore(before int64) (count int64, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekFetchControlContacts(since int64, includeInvited bool) (contacts []types.IgasonderzoekControlRegistration, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekFindControlCode(code string) (entryCode types.IgasonderzoekControlCode, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekFindOneControlContact(id string) (contact types.IgasonderzoekControlRegistration, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekFindOneControlContactByUsedCode(code string) (contact types.IgasonderzoekControlRegistration, err error)
- func (dbService *SelfSwabbingExtDBService) IgasonderzoekMarkControlContactInvited(id string, code string) error
- func (dbService *SelfSwabbingExtDBService) LoadLatestSlotCurve(instanceID string) (res sampler.SlotCurve, err error)
- func (dbService *SelfSwabbingExtDBService) MarkEntryCodeAsUsed(instanceID string, code string, usedBy string) (err error)
- func (dbService *SelfSwabbingExtDBService) ReserveSlot(instanceID string, participantID string) error
- func (dbService *SelfSwabbingExtDBService) SaveNewSlotCurve(instanceID string, obj sampler.SlotCurve) (err error)
- type UsedSlot
Constants ¶
View Source
const ( USED_SLOT_STATUS_RESERVED = "reserved" USED_SLOT_STATUS_CONFIRMED = "confirmed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelfSwabbingExtDBService ¶
type SelfSwabbingExtDBService struct { DBClient *mongo.Client DBNamePrefix string // contains filtered or unexported fields }
func NewSelfSwabbingExtDBService ¶
func NewSelfSwabbingExtDBService(configs types.DBConfig) *SelfSwabbingExtDBService
func (*SelfSwabbingExtDBService) AddEntryCode ¶
func (dbService *SelfSwabbingExtDBService) AddEntryCode(instanceID string, entryCode string) (string, error)
func (*SelfSwabbingExtDBService) CancelSlotReservation ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) CancelSlotReservation(instanceID string, participantID string) error
func (*SelfSwabbingExtDBService) CleanUpExpiredSlotReservations ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) CleanUpExpiredSlotReservations(instanceID string) error
func (*SelfSwabbingExtDBService) ConfirmSlot ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) ConfirmSlot(instanceID string, participantID string) error
func (*SelfSwabbingExtDBService) CountUsedCodes ¶ added in v0.4.0
func (dbService *SelfSwabbingExtDBService) CountUsedCodes(instanceID string) (count int64, err error)
func (*SelfSwabbingExtDBService) CreateIndexForEntryCodes ¶
func (dbService *SelfSwabbingExtDBService) CreateIndexForEntryCodes(instanceID string) error
func (*SelfSwabbingExtDBService) CreateIndexesForIgasonderzoek ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) CreateIndexesForIgasonderzoek()
func (*SelfSwabbingExtDBService) CreateIndexesForSampler ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) CreateIndexesForSampler(instanceID string)
func (*SelfSwabbingExtDBService) FindEntryCodeInfo ¶
func (dbService *SelfSwabbingExtDBService) FindEntryCodeInfo(instanceID string, code string) (entryCode types.ValidationCode, err error)
func (*SelfSwabbingExtDBService) GetUsedSlotsCountSince ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) GetUsedSlotsCountSince(instanceID string, ref int64) (count int64, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekAddControlCode ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekAddControlCode(code string) (string, error)
func (*SelfSwabbingExtDBService) IgasonderzoekAddControlContact ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekAddControlContact(contact types.IgasonderzoekControlRegistration) (string, error)
func (*SelfSwabbingExtDBService) IgasonderzoekDeleteContactsBefore ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekDeleteContactsBefore(before int64) (count int64, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekDeleteControlCode ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekDeleteControlCode(code string) (count int64, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekDeleteControlCodesBefore ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekDeleteControlCodesBefore(before int64) (count int64, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekFetchControlContacts ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekFetchControlContacts(since int64, includeInvited bool) (contacts []types.IgasonderzoekControlRegistration, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekFindControlCode ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekFindControlCode(code string) (entryCode types.IgasonderzoekControlCode, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekFindOneControlContact ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekFindOneControlContact(id string) (contact types.IgasonderzoekControlRegistration, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekFindOneControlContactByUsedCode ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekFindOneControlContactByUsedCode(code string) (contact types.IgasonderzoekControlRegistration, err error)
func (*SelfSwabbingExtDBService) IgasonderzoekMarkControlContactInvited ¶ added in v0.7.0
func (dbService *SelfSwabbingExtDBService) IgasonderzoekMarkControlContactInvited(id string, code string) error
func (*SelfSwabbingExtDBService) LoadLatestSlotCurve ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) LoadLatestSlotCurve(instanceID string) (res sampler.SlotCurve, err error)
func (*SelfSwabbingExtDBService) MarkEntryCodeAsUsed ¶
func (dbService *SelfSwabbingExtDBService) MarkEntryCodeAsUsed(instanceID string, code string, usedBy string) (err error)
func (*SelfSwabbingExtDBService) ReserveSlot ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) ReserveSlot(instanceID string, participantID string) error
func (*SelfSwabbingExtDBService) SaveNewSlotCurve ¶ added in v0.2.0
func (dbService *SelfSwabbingExtDBService) SaveNewSlotCurve(instanceID string, obj sampler.SlotCurve) (err error)
Click to show internal directories.
Click to hide internal directories.