db

package
v0.0.0-...-7e3d6ea Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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