Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserProfiles ¶
type UserProfiles struct {
// contains filtered or unexported fields
}
func (*UserProfiles) Get ¶
func (u *UserProfiles) Get(userID string) (model.Userprofile, error)
Get returns the requested userprofile
func (*UserProfiles) Save ¶
func (u *UserProfiles) Save(up model.Userprofile) error
Save saves the userprofile in the parameter. If the userprofile for the given UserId already exists, then it updates the fields
type UserProfilesCollection ¶
type UserProfilesCollection interface { Save(up model.Userprofile) error Get(userID string) (model.Userprofile, error) }
func NewUserProfile ¶
func NewUserProfile(db *mongo.Database) UserProfilesCollection
NewUserProfile creates a new object to manipulate the collection
Click to show internal directories.
Click to hide internal directories.