datastore

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MPL-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AppCollections = "applications"
)
View Source
const (
	EventCollection = "events"
)
View Source
const (
	EventDeliveryCollection = "eventdeliveries"
)
View Source
const (
	GroupCollection = "groups"
)

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 NewEventDeliveryRepository added in v0.3.0

func NewEventDeliveryRepository(db *mongo.Database) convoy.EventDeliveryRepository

func NewEventRepository added in v0.3.0

func NewEventRepository(db *mongo.Database) convoy.EventRepository

func NewGroupRepo added in v0.2.0

func NewGroupRepo(client *mongo.Database) convoy.GroupRepository

Types

This section is empty.

Jump to

Keyboard shortcuts

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