repo

package
v0.0.0-...-a448e87 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepo

type IRepo interface {
	FindRelevant(username string, nUser int, expiration time.Duration) ([]cachemodels.CachedUser, error)
}

func NewRepo

func NewRepo(
	userRepo databaserepo.IUserRepo,
	hobbyRepo databaserepo.IHobbyRepo,
	cachedRepo databaserepo.ICachedRepo,
	userCacheRepo cacherepo.IUserCacheRepo,
) IRepo

type Repo

type Repo struct {
	UserRepo      databaserepo.IUserRepo
	HobbyRepo     databaserepo.IHobbyRepo
	CachedRepo    databaserepo.ICachedRepo
	UserCacheRepo cacherepo.IUserCacheRepo
}

func (*Repo) FindRelevant

func (r *Repo) FindRelevant(username string, nUser int, expiration time.Duration) ([]cachemodels.CachedUser, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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