Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Create(ctx context.Context, name string) (*entity.Product, error) List(ctx context.Context) ([]entity.Product, error) GetOne(ctx context.Context, id string) (*entity.Product, error) Update(ctx context.Context, p *entity.Product) error }
func NewMongoRepository ¶
func NewMongoRepository(db *mongo.Database) Repository
Click to show internal directories.
Click to hide internal directories.