datastore

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MPL-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AppCollections = "applications"
)
View Source
const (
	MsgCollection = "messages"
)
View Source
const (
	OrgCollection = "organisations"
)

Variables

This section is empty.

Functions

func EnsureIndex added in v0.1.0

func EnsureIndex(db *mongo.Database, collectionName string, field string, unique bool) bool

EnsureIndex - ensures an index is created for a specific field in a collection

func New added in v0.1.0

func New(cfg config.Configuration) (*mongo.Client, error)

func NewApplicationRepo added in v0.1.0

func NewApplicationRepo(client *mongo.Database) convoy.ApplicationRepository

func NewMessageRepository added in v0.1.0

func NewMessageRepository(db *mongo.Database) convoy.MessageRepository

func NewOrganisationRepo added in v0.1.0

func NewOrganisationRepo(client *mongo.Database) convoy.OrganisationRepository

Types

This section is empty.

Jump to

Keyboard shortcuts

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