Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemRepository ¶
type ItemRepository interface {
FindOneBySlug(ctx context.Context, slug string) (*model.Item, error)
}
func NewItemRepository ¶
func NewItemRepository( mongoClient *mongo.Client, ) ItemRepository
type Repository ¶
type Repository interface {
ItemRepository() ItemRepository
}
func New ¶
func New( mongoClient *mongo.Client, ) Repository
Click to show internal directories.
Click to hide internal directories.