Documentation ¶
Index ¶
Constants ¶
View Source
const USER_COLLECTION = "users"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetUserByIdParams ¶
type GetUserByIdParams struct {
ID string `json:"id"`
}
type MongoUserRepository ¶
type MongoUserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository() (*MongoUserRepository, error)
func (*MongoUserRepository) Create ¶
func (u *MongoUserRepository) Create(user *User) error
func (*MongoUserRepository) FindAll ¶
func (u *MongoUserRepository) FindAll() ([]*User, error)
func (*MongoUserRepository) FindById ¶
func (u *MongoUserRepository) FindById() (*User, error)
func (*MongoUserRepository) FindByUserName ¶
func (u *MongoUserRepository) FindByUserName(username string) (*User, error)
Click to show internal directories.
Click to hide internal directories.