repositories

package
v0.0.0-...-efea637 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimalRepository

type AnimalRepository interface {
	Save(animal *models.Animal) (*models.Animal, error)
	FindAll() ([]*models.Animal, error)
}

func NewAnimalRepository

func NewAnimalRepository() AnimalRepository

type Repo

type Repo struct{}

func (*Repo) FindAll

func (*Repo) FindAll() ([]*models.Animal, error)

func (*Repo) Save

func (*Repo) Save(animal *models.Animal) (*models.Animal, error)

Jump to

Keyboard shortcuts

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