infrastructure

package
v0.0.0-...-db6235c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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) Delete

func (r *InmemoryUsersRepository) Delete(ctx *context.Context, searchedId vo.Id) *errors.AppError

func (*InmemoryUsersRepository) Find

func (r *InmemoryUsersRepository) Find(ctx *context.Context, searchedId vo.Id) (user.User, *errors.AppError)

func (*InmemoryUsersRepository) Save

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) Delete

func (r *MongoUsersRepository) Delete(ctx *context.Context, id vo.Id) *errors.AppError

func (*MongoUsersRepository) Find

func (*MongoUsersRepository) Save

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL