mongo

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AgentCollection = "agentCollection"
)

AgentCollection collection name

View Source
var (
	ApplicationMetadataCollection = "applicationMetadataCollection"
)

SearchCollection collection name

View Source
var (
	CompanyCollection = "companyCollection"
)

CompanyCollection collection name

Functions

func GetDmManager

func GetDmManager() *dmManager

GetDmManager returns dmManager

func GetMockDmManager

func GetMockDmManager() *dmManager

GetMockDmManager returns mock dmManager

func GetPagination

func GetPagination(size int64, page int64, limit int64) (int64, int64)

func InitCompanyData

func InitCompanyData() []v1.Company

InitCompanyData loads mock company data

func NewAgentsRepository

func NewAgentsRepository(timeout int) repository.AgentRepository

NewAgentsRepository returns AgentRepository type object

func NewApplicationMetadataRepository

func NewApplicationMetadataRepository(timeout int) repository.ApplicationMetadataRepository

NewApplicationMetadataRepository returns ApplicationMetadataRepository type object

func NewCompanyRepository

func NewCompanyRepository(timeout int) repository.CompanyRepository

NewCompanyRepository returns CompanyRepository type object

func NewMockCompanyRepository

func NewMockCompanyRepository() repository.CompanyRepository

NewMockCompanyRepository returns CompanyRepository type object

Types

This section is empty.

Jump to

Keyboard shortcuts

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