repository

package
v0.0.0-...-db89ced Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *gorm.DB

Functions

func SetupDatabase

func SetupDatabase()

Types

type HouseRepository

type HouseRepository struct {
}

func (*HouseRepository) FetchAll

func (r *HouseRepository) FetchAll() []models.House

func (*HouseRepository) FetchById

func (r *HouseRepository) FetchById(id int) *models.House

func (*HouseRepository) FindByTitle

func (r *HouseRepository) FindByTitle(title string) []models.House

type Repository

type Repository struct {
}

func (*Repository) FetchAll

func (r *Repository) FetchAll()

Jump to

Keyboard shortcuts

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