Documentation ¶
Index ¶
- type InmemoryUsersRepository
- func (r *InmemoryUsersRepository) Delete(ctx *context.Context, searchedId vo.Id) *errors.AppError
- func (r *InmemoryUsersRepository) Find(ctx *context.Context, searchedId vo.Id) (user.User, *errors.AppError)
- func (r *InmemoryUsersRepository) FindByCriteria(ctx *context.Context, f criteria.Criteria, o criteria.SorterCriteria, ...) (collection.Collection, *errors.AppError)
- func (r *InmemoryUsersRepository) Save(ctx *context.Context, newUser user.User) *errors.AppError
- type MongoUser
- type MongoUsersRepository
- func (r *MongoUsersRepository) Delete(ctx *context.Context, id vo.Id) *errors.AppError
- func (r *MongoUsersRepository) Find(ctx *context.Context, id vo.Id) (user.User, *errors.AppError)
- func (r *MongoUsersRepository) FindByCriteria(ctx *context.Context, c criteria.Criteria, o criteria.SorterCriteria, ...) (collection.Collection, *errors.AppError)
- func (r *MongoUsersRepository) Save(ctx *context.Context, u user.User) *errors.AppError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InmemoryUsersRepository ¶
type InmemoryUsersRepository struct {
// contains filtered or unexported fields
}
func NewInmemoryUsersRepository ¶
func NewInmemoryUsersRepository() *InmemoryUsersRepository
func (*InmemoryUsersRepository) FindByCriteria ¶
func (r *InmemoryUsersRepository) FindByCriteria(ctx *context.Context, f criteria.Criteria, o criteria.SorterCriteria, p criteria.PaginatorCriteria) (collection.Collection, *errors.AppError)
type MongoUser ¶
type MongoUser struct { Id primitive.ObjectID `bson:"_id,omitempty"` FirstName string `bson:"first_name,omitempty,"` LastName string `bson:"last_name,omitempty"` Email string `bson:"email,omitempty"` CreatedAt time.Time `bson:"created_at,omitempty"` UpdateAt time.Time `bson:"updated_at,omitempty"` }
type MongoUsersRepository ¶
type MongoUsersRepository struct {
// contains filtered or unexported fields
}
func NewMongoUsersRepository ¶
func NewMongoUsersRepository(db string) *MongoUsersRepository
func (*MongoUsersRepository) FindByCriteria ¶
func (r *MongoUsersRepository) FindByCriteria(ctx *context.Context, c criteria.Criteria, o criteria.SorterCriteria, p criteria.PaginatorCriteria) (collection.Collection, *errors.AppError)
Click to show internal directories.
Click to hide internal directories.