repository

package
v0.0.0-...-8cce31a Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RadiusNegativeOrZeroErr = errors.New("radius must be bigger than zero")
)

Functions

This section is empty.

Types

type PhotoRepository

type PhotoRepository interface {
	ByID(id uuid.UUID) *entity.Photo
	Save(photo *entity.Photo) error
}

type PointRepository

type PointRepository interface {
	ByID(id uuid.UUID) *entity.Point
	InArea(lat, lng, radius float32) ([]*entity.Point, error)
	ByAuthorID(authorID uuid.UUID) []*entity.Point
	Save(point *entity.Point) error
}

type RatingRepository

type RatingRepository interface {
	ByPointID(pointID uuid.UUID) []*entity.Rating
	Save(rating *entity.Rating) error
}

type UserRepository

type UserRepository interface {
	ByID(id uuid.UUID) *entity.User
	ByUsernameOrEmail(value string) *entity.User
	Save(user *entity.User) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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