Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserprofileController ¶
type UserprofileController struct {
// contains filtered or unexported fields
}
UserprofileController represents a database connection to userprofile collection
func NewUserprofileController ¶
func NewUserprofileController(u database.UserProfilesCollection) *UserprofileController
NewUserprofileController creates a controller with the given db collection
func (*UserprofileController) Create ¶
func (u *UserprofileController) Create(up model.Userprofile) error
Create creates or updates
func (*UserprofileController) Get ¶
func (u *UserprofileController) Get(userID string) (model.Userprofile, error)
Get returns the userprofile for the given ID
Click to show internal directories.
Click to hide internal directories.