Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { InsertOne(ctx context.Context, expense model.Expense) error InsertMany(ctx context.Context, expenses []model.Expense) error Search(ctx context.Context, userId string, month string, year string) []model.Expense }
func NewRepository ¶
func NewRepository(client *mongo.Client) Repository
Click to show internal directories.
Click to hide internal directories.