Documentation ¶
Index ¶
- type ContentDBService
- func (dbService *ContentDBService) AddLPPParticipant(instanceID string, lppParticipant types.LPPParticipant) (string, error)
- func (dbService *ContentDBService) AddNewsItem(instanceID string, newsItem types.NewsItem) (string, error)
- func (dbService *ContentDBService) AddTickBiteMapData(instanceID string, tickBiteMapData types.TickBiteMapData) (string, error)
- func (dbService *ContentDBService) CreateIndexLPPInfos(instanceID string) error
- func (dbService *ContentDBService) CreateIndexNewsItemInfos(instanceID string) error
- func (dbService *ContentDBService) CreateIndexTickBiteMapInfos(instanceID string) error
- func (dbService *ContentDBService) DeleteFileInfo(instanceID string, fileID string) (count int64, err error)
- func (dbService *ContentDBService) FindFileInfo(instanceID string, fileID string) (types.FileInfo, error)
- func (dbService *ContentDBService) FindTickBiteMapDataNewerThan(instanceID string, time int64) (tickBiteMapData []types.TickBiteMapData, err error)
- func (dbService *ContentDBService) FindUninvitedLPPParticipants(instanceID string) ([]types.LPPParticipant, error)
- func (dbService *ContentDBService) GetFileInfoList(instanceID string) (fileInfoList []types.FileInfo, err error)
- func (dbService *ContentDBService) GetLPPParticipant(instanceID string, pid string) (lppParticipant types.LPPParticipant, err error)
- func (dbService *ContentDBService) GetNewsItemsList(instanceID string) (newsItemList []types.NewsItem, err error)
- func (dbService *ContentDBService) GetParticpantsToRemind(instanceID string) ([]types.LPPParticipant, error)
- func (dbService *ContentDBService) ReplaceLPPParticipant(instanceID string, lppParticipant types.LPPParticipant) error
- func (dbService *ContentDBService) SaveFileInfo(instanceID string, fileInfo types.FileInfo) (types.FileInfo, error)
- func (dbService *ContentDBService) UpdateLPPParticipantInvitationSentAt(instanceID string, pid string, invitationSentAt time.Time) error
- func (dbService *ContentDBService) UpdateLPPParticipantReminderSentAt(instanceID string, pid string, reminderSentAt time.Time) error
- func (dbService *ContentDBService) UpdateLPPParticipantSubmissions(instanceID string, pid string, submissions map[string]time.Time, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentDBService ¶
type ContentDBService struct { DBClient *mongo.Client DBNamePrefix string // contains filtered or unexported fields }
func NewContentDBService ¶
func NewContentDBService(configs types.DBConfig, InstanceIDs []string) *ContentDBService
func (*ContentDBService) AddLPPParticipant ¶ added in v0.4.0
func (dbService *ContentDBService) AddLPPParticipant(instanceID string, lppParticipant types.LPPParticipant) (string, error)
func (*ContentDBService) AddNewsItem ¶ added in v0.3.0
func (*ContentDBService) AddTickBiteMapData ¶
func (dbService *ContentDBService) AddTickBiteMapData(instanceID string, tickBiteMapData types.TickBiteMapData) (string, error)
func (*ContentDBService) CreateIndexLPPInfos ¶ added in v0.4.0
func (dbService *ContentDBService) CreateIndexLPPInfos(instanceID string) error
func (*ContentDBService) CreateIndexNewsItemInfos ¶ added in v0.2.0
func (dbService *ContentDBService) CreateIndexNewsItemInfos(instanceID string) error
func (*ContentDBService) CreateIndexTickBiteMapInfos ¶ added in v0.2.0
func (dbService *ContentDBService) CreateIndexTickBiteMapInfos(instanceID string) error
func (*ContentDBService) DeleteFileInfo ¶ added in v0.2.0
func (dbService *ContentDBService) DeleteFileInfo(instanceID string, fileID string) (count int64, err error)
func (*ContentDBService) FindFileInfo ¶ added in v0.2.0
func (*ContentDBService) FindTickBiteMapDataNewerThan ¶
func (dbService *ContentDBService) FindTickBiteMapDataNewerThan(instanceID string, time int64) (tickBiteMapData []types.TickBiteMapData, err error)
func (*ContentDBService) FindUninvitedLPPParticipants ¶ added in v0.4.0
func (dbService *ContentDBService) FindUninvitedLPPParticipants(instanceID string) ([]types.LPPParticipant, error)
func (*ContentDBService) GetFileInfoList ¶ added in v0.2.0
func (dbService *ContentDBService) GetFileInfoList(instanceID string) (fileInfoList []types.FileInfo, err error)
func (*ContentDBService) GetLPPParticipant ¶ added in v0.4.0
func (dbService *ContentDBService) GetLPPParticipant(instanceID string, pid string) (lppParticipant types.LPPParticipant, err error)
func (*ContentDBService) GetNewsItemsList ¶ added in v0.2.0
func (dbService *ContentDBService) GetNewsItemsList(instanceID string) (newsItemList []types.NewsItem, err error)
func (*ContentDBService) GetParticpantsToRemind ¶ added in v0.4.0
func (dbService *ContentDBService) GetParticpantsToRemind(instanceID string) ([]types.LPPParticipant, error)
func (*ContentDBService) ReplaceLPPParticipant ¶ added in v0.4.0
func (dbService *ContentDBService) ReplaceLPPParticipant(instanceID string, lppParticipant types.LPPParticipant) error
func (*ContentDBService) SaveFileInfo ¶ added in v0.2.0
func (*ContentDBService) UpdateLPPParticipantInvitationSentAt ¶ added in v0.4.0
func (*ContentDBService) UpdateLPPParticipantReminderSentAt ¶ added in v0.4.0
func (*ContentDBService) UpdateLPPParticipantSubmissions ¶ added in v0.4.0
func (dbService *ContentDBService) UpdateLPPParticipantSubmissions(instanceID string, pid string, submissions map[string]time.Time, tempParticipantInfo *types.TempParticipantInfo) error
Click to show internal directories.
Click to hide internal directories.