repository

package
v0.0.0-...-0b0b9b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 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 TodoRepository

type TodoRepository interface {
	Insert(todo entity.Todo) (err error)
	FindAll() (todos []entity.Todo, err error)
	DeleteAll() (err error)
	GetById(id string) (todo entity.Todo, err error)
	UpdateById(id string, data map[string]interface{}) (err error)
	DeleteById(id string) (err error)
}

func NewTodoRepository

func NewTodoRepository(database *mongo.Database) TodoRepository

Jump to

Keyboard shortcuts

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