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 {
	GetModule(ctx context.Context, moduleID string) (models.Module, error)
	GetModuleByPhoneNumber(ctx context.Context, phoneNumber string) (models.Module, error)
	GetAllModulesWithOutPagination(ctx context.Context) ([]models.Module, error)
	GetAllModules(ctx context.Context) ([]models.Module, string, error)
	GetModulesByRiverWithoutPagination(ctx context.Context, riverID string) ([]models.Module, error)
	GetModulesByRiver(ctx context.Context) ([]models.Module, string, error)
	SaveModule(ctx context.Context, module models.Module) (models.Module, error)
	UpdateModule(ctx context.Context, moduleID string, options models.ModuleUpdateOptions) error
}

Repository defines the data-persistance methods related to modules

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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