repos

package module
v0.0.0-...-5a32478 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlantRepo

type PlantRepo interface {
	SavePlant(plant models.Plant) (models.Plant, error)
	GetPlantByName(name string) (models.Plant, error)
}

type SpecimenRepo

type SpecimenRepo interface {
	SaveSpecimen(speciment models.Specimen) (models.Specimen, error)
	GetSpecimenById(id uint32) (models.Specimen, error)
}

type SqlPlantRepo

type SqlPlantRepo struct {
	// contains filtered or unexported fields
}

func CreateSqlPlantRepo

func CreateSqlPlantRepo(database *sql.DB) SqlPlantRepo

func (SqlPlantRepo) GetPlantByName

func (self SqlPlantRepo) GetPlantByName(name string) (models.Plant, error)

func (SqlPlantRepo) SavePlant

func (self SqlPlantRepo) SavePlant(plant models.Plant) (models.Plant, error)

type SqlSpecimenRepo

type SqlSpecimenRepo struct {
	// contains filtered or unexported fields
}

func CreateRepo

func CreateRepo(database *sql.DB) SqlSpecimenRepo

func (SqlSpecimenRepo) SaveSpecimen

func (self SqlSpecimenRepo) SaveSpecimen(specimen models.Specimen) (models.Specimen, error)

Jump to

Keyboard shortcuts

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