MCPcopy Create free account
hub / github.com/devinterface/startersaas-go-api / getCollection

Method getCollection

services/user.service.go:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15type UserService struct{ BaseService }
16
17func (userService *UserService) getCollection() (collection *mgm.Collection) {
18 coll := mgm.CollectionByName("user")
19 return coll
20}
21
22// OneBy function
23func (userService *UserService) OneBy(q bson.M) (user *models.User, err error) {

Callers 15

OneByMethod · 0.95
UpdateMethod · 0.95
CreateMethod · 0.95
UpdatePasswordMethod · 0.95
FindByMethod · 0.95
DeleteMethod · 0.95
CreateCustomerMethod · 0.45
SubscribeMethod · 0.45
GetCustomerMethod · 0.45
GetCustomerInvoicesMethod · 0.45
GetCustomerCardsMethod · 0.45
CancelSubscriptionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected