Documentation ¶
Index ¶
- Constants
- func EnsureIndex(db *mongo.Database, collectionName string, field string, unique bool) bool
- func New(cfg config.Configuration) (*mongo.Client, error)
- func NewApplicationRepo(client *mongo.Database) convoy.ApplicationRepository
- func NewEventDeliveryRepository(db *mongo.Database) convoy.EventDeliveryRepository
- func NewEventRepository(db *mongo.Database) convoy.EventRepository
- func NewGroupRepo(client *mongo.Database) convoy.GroupRepository
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
EnsureIndex - ensures an index is created for a specific field in a collection
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.
Click to show internal directories.
Click to hide internal directories.