Documentation ¶
Index ¶
- type DbAccessor
- type MongoDbAccessor
- func (m *MongoDbAccessor) AddIssueToItem(issue qrep.IssueType, id string) error
- func (m *MongoDbAccessor) Disconnect()
- func (m *MongoDbAccessor) GetItem(id string) (qrep.TrackedItemType, error)
- func (m *MongoDbAccessor) GetItemsFromIds(itemids []string) ([]qrep.TrackedItemType, error)
- func (m *MongoDbAccessor) GetTrackedItems(maxcount int) ([]qrep.TrackedItemType, error)
- func (m *MongoDbAccessor) InsertItem(item qrep.TrackedItemType) (string, error)
- func (m *MongoDbAccessor) RemoveItemsFromDb(itemids []string) error
- func (m *MongoDbAccessor) SearchTrackedItems(maxcount int, name string) ([]qrep.TrackedItemType, error)
- func (m *MongoDbAccessor) UpdateDbIssue(issue qrep.IssueType) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbAccessor ¶
type DbAccessor interface { InsertItem(qrep.TrackedItemType) (string, error) GetItem(string) (qrep.TrackedItemType, error) AddIssueToItem(qrep.IssueType, string) error GetTrackedItems(int) ([]qrep.TrackedItemType, error) SearchTrackedItems(int, string) ([]qrep.TrackedItemType, error) UpdateDbIssue(qrep.IssueType) error GetItemsFromIds([]string) ([]qrep.TrackedItemType, error) RemoveItemsFromDb([]string) error }
type MongoDbAccessor ¶
type MongoDbAccessor struct {
// contains filtered or unexported fields
}
func NewMongoDbConnection ¶
func NewMongoDbConnection() *MongoDbAccessor
func (*MongoDbAccessor) AddIssueToItem ¶
func (m *MongoDbAccessor) AddIssueToItem(issue qrep.IssueType, id string) error
func (*MongoDbAccessor) Disconnect ¶
func (m *MongoDbAccessor) Disconnect()
func (*MongoDbAccessor) GetItem ¶
func (m *MongoDbAccessor) GetItem(id string) (qrep.TrackedItemType, error)
func (*MongoDbAccessor) GetItemsFromIds ¶
func (m *MongoDbAccessor) GetItemsFromIds(itemids []string) ([]qrep.TrackedItemType, error)
func (*MongoDbAccessor) GetTrackedItems ¶
func (m *MongoDbAccessor) GetTrackedItems(maxcount int) ([]qrep.TrackedItemType, error)
func (*MongoDbAccessor) InsertItem ¶
func (m *MongoDbAccessor) InsertItem(item qrep.TrackedItemType) (string, error)
func (*MongoDbAccessor) RemoveItemsFromDb ¶
func (m *MongoDbAccessor) RemoveItemsFromDb(itemids []string) error
func (*MongoDbAccessor) SearchTrackedItems ¶
func (m *MongoDbAccessor) SearchTrackedItems(maxcount int, name string) ([]qrep.TrackedItemType, error)
func (*MongoDbAccessor) UpdateDbIssue ¶
func (m *MongoDbAccessor) UpdateDbIssue(issue qrep.IssueType) error
Click to show internal directories.
Click to hide internal directories.