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
Click to show internal directories.
Click to hide internal directories.