database

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzeRequestRepository

type AnalyzeRequestRepository interface {
	Store(analyzeRequest entities.AnalyzeRequest) error
	FindByID(analyzeRequestID id.ID) (entities.AnalyzeRequest, error)
	IndexForUser(userID id.ID, skip *int, limit *int, sortBy *string, sortDirection *string) (analyzeRequests []entities.AnalyzeRequest, err error)
}

AnalyzeRequestRepository is an instance of the user repository

type DB

type DB interface {
	UserRepository() UserRepository
	AnalyzeRequestRepository() AnalyzeRequestRepository
}

DB is a collection of database repositories

type UserRepository

type UserRepository interface {
	Store(user entities.User) error
	FindByID(userID id.ID) (*entities.User, error)
	FindByEmail(email string) (*entities.User, error)
}

UserRepository is an instance of the user repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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