repositories

package
v0.0.0-...-e6c98ad Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ACTIVE = "active = ?"

Variables

This section is empty.

Functions

func NewBeneficiariesRepository

func NewBeneficiariesRepository(db *gorm.DB) *beneficiariesRepositoryImpl

func NewDeliveryCommentsRepository

func NewDeliveryCommentsRepository(db *gorm.DB) *deliveryCommentsRepositoryImpl

func NewDeliveryPointRepository

func NewDeliveryPointRepository(db *gorm.DB) *deliveryPointsRepositoryImpl

func NewRoutesRepository

func NewRoutesRepository(db *gorm.DB) *routesRepositoryImpl

func NewUsersRepository

func NewUsersRepository(db *gorm.DB) *usersRepositoryImpl

Types

type BeneficiariesRepository

type BeneficiariesRepository interface {
	Save(*models.Beneficiary) (*models.Beneficiary, error)
	Delete(*models.Beneficiary) (*models.Beneficiary, error)
	FindAll(*[]models.Beneficiary) (*[]models.Beneficiary, error)
	FindByID(*models.Beneficiary) (*models.Beneficiary, error)
}

type RoutesRepository

type RoutesRepository interface {
	Save(*models.Route) (*models.Route, error)
	Delete(*models.Route) (*models.Route, error)
	FindAll(*[]models.Route) (*[]models.Route, error)
	FindByID(*models.Route) (*models.Route, error)
}

type UsersRepository

type UsersRepository interface {
	Save(*models.User) (*models.User, error)
	Delete(*models.User) (*models.User, error)
	FindAll(*[]models.User) (*[]models.User, error)
	FindByID(*models.User) (*models.User, error)
	FindByEmail(*models.User) (*models.User, error)
}

Jump to

Keyboard shortcuts

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