repository

package
v0.0.0-...-158ad40 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBookNotFound = errors.New("book not found")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetBook(ctx context.Context, id string) (model.Book, error) // Updated method names and parameters
	CreateBook(ctx context.Context, in model.Book) (model.Book, error)
	UpdateBook(ctx context.Context, in model.Book) (model.Book, error)
	DeleteBook(ctx context.Context, id string) error
}

func NewRepository

func NewRepository(db *mongo.Database) Repository

Jump to

Keyboard shortcuts

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