db

package
v0.0.0-...-04802e6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentsCollectionName = "agents"
)
View Source
const (
	CompanySettingsCollectionName = "company-settings"
)
View Source
const (
	LinksCollectionName = "links"
)
View Source
const (
	ProjectsCollectionName = "projects"
)
View Source
const (
	UsersCollectionName = "slickusers"
)

Variables

View Source
var Agents = agentsType{}
View Source
var (
	Client *mongo.Client
)
View Source
var CompanySettings = companySettingsType{}
View Source
var Links = linksType{}
View Source
var Projects = projectType{}
View Source
var User = userType{}

Functions

func CloseMongoConnection

func CloseMongoConnection()

func EmptyCompanySettingsFor

func EmptyCompanySettingsFor(name string) *slickqa.CompanySettings

func InitializeMongoConnection

func InitializeMongoConnection() error

Types

type LinksQuery

type LinksQuery struct {
	Company    string `bson:"_id.company"`
	Project    string `bson:"_id.project"`
	EntityType string `bson:"_id.type"`
	EntityId   string `bson:"_id.id"`
}

Jump to

Keyboard shortcuts

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