repository

package
v0.0.0-...-6f9a9ad Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound not found
	ErrNotFound = errors.New("not found")
	// ErrDuplicateFields duplicate fields
	ErrDuplicateFields = errors.New("duplicate fields")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	SaveRiver(ctx context.Context, river models.River) (models.River, error)
	GetRiver(ctx context.Context, riverID string) (models.River, error)
	GetAllRiversNotPaginated(ctx context.Context) ([]models.River, error) // This will be replaced for a paginated one
	GetAllRivers(ctx context.Context) ([]models.River, string, error)
}

Repository defines the data-persistance methods for rivers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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