repository

package
v0.0.0-...-41ef91b Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorRepository

type AuthorRepository interface {
	Repository
	GetAuthorTodos() (interface{}, error)
}

func NewAuthorRepository

func NewAuthorRepository(db *gorm.DB) AuthorRepository

type Repository

type Repository interface {
	GetAll() (interface{}, error)
	GetOneById(id interface{}) (interface{}, error)
	Create(str interface{}) error
	Update(obj interface{}) (interface{}, error)
	Delete(id interface{}) error
}

type ToDoRepository

type ToDoRepository interface {
	Repository
}

func NewToDoRepository

func NewToDoRepository(db *gorm.DB) ToDoRepository

Jump to

Keyboard shortcuts

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