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 NewGroupRepo(client *mongo.Database) convoy.GroupRepository
- func NewMessageRepository(db *mongo.Database) convoy.MessageRepository
Constants ¶
View Source
const (
AppCollections = "applications"
)
View Source
const (
GroupCollection = "groups"
)
View Source
const (
MsgCollection = "messages"
)
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 NewGroupRepo ¶ added in v0.2.0
func NewGroupRepo(client *mongo.Database) convoy.GroupRepository
func NewMessageRepository ¶ added in v0.1.0
func NewMessageRepository(db *mongo.Database) convoy.MessageRepository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.