expense

package
v0.0.0-...-678aede Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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