repositories

package
v0.0.0-...-0026394 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 2 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 struct {
	DB *gorm.DB
}

func (TodoRepository) Delete

func (r TodoRepository) Delete(todo *model.Todo) (*model.Todo, error)

func (TodoRepository) GetAll

func (r TodoRepository) GetAll() ([]*model.Todo, error)

func (TodoRepository) GetById

func (r TodoRepository) GetById(id string) (*model.Todo, error)

func (TodoRepository) Save

func (r TodoRepository) Save(todo *model.Todo) (*model.Todo, error)

func (TodoRepository) Update

func (r TodoRepository) Update(todo *model.Todo) (*model.Todo, error)

Jump to

Keyboard shortcuts

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