data

package
v0.0.0-...-30f0aeb Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewCategoryRepository

func NewCategoryRepository(conn pkgRepo.Connector) repository.CategoryRepository

func NewTaskRepository

func NewTaskRepository(conn pkgRepo.Connector) repository.TaskRepository

func NewUserRepository

func NewUserRepository(conn pkgRepo.Connector) repository.UserRepository

Types

type CategoryRepository

type CategoryRepository struct {
	// contains filtered or unexported fields
}

func (CategoryRepository) FindByID

func (r CategoryRepository) FindByID(ctx context.Context, id uint32) (entity.Category, error)

func (CategoryRepository) FindBySlugAndUserID

func (r CategoryRepository) FindBySlugAndUserID(ctx context.Context, slug string, userID uint32) (entity.Category, error)

func (CategoryRepository) FindByUserID

func (r CategoryRepository) FindByUserID(ctx context.Context, userID uint32) ([]entity.Category, error)

func (CategoryRepository) Insert

func (r CategoryRepository) Insert(ctx context.Context, category entity.Category) (uint32, error)

type RepositoryManager

type RepositoryManager interface {
	Task() repository.TaskRepository
	Category() repository.CategoryRepository
	User() repository.UserRepository
}

func NewRepositoryManager

func NewRepositoryManager(conn pkgRepo.Connector) RepositoryManager

type TaskRepository

type TaskRepository struct {
	// contains filtered or unexported fields
}

func (TaskRepository) DeleteByID

func (r TaskRepository) DeleteByID(ctx context.Context, taskID uint32) error

func (TaskRepository) FindByID

func (r TaskRepository) FindByID(ctx context.Context, id uint32) (entity.Task, error)

func (TaskRepository) FindByUUID

func (r TaskRepository) FindByUUID(ctx context.Context, uuid string) (entity.Task, error)

func (TaskRepository) FindByUserID

func (r TaskRepository) FindByUserID(ctx context.Context, userID uint32) ([]entity.Task, error)

func (TaskRepository) Insert

func (r TaskRepository) Insert(ctx context.Context, task entity.Task) (uint32, error)

func (TaskRepository) UpdateDone

func (r TaskRepository) UpdateDone(ctx context.Context, task entity.Task) error

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func (UserRepository) FindByEmail

func (r UserRepository) FindByEmail(ctx context.Context, email string) (entity.User, error)

func (UserRepository) FindByID

func (r UserRepository) FindByID(ctx context.Context, id uint32) (entity.User, error)

func (UserRepository) FindByUUID

func (r UserRepository) FindByUUID(ctx context.Context, uuid string) (entity.User, error)

func (UserRepository) GetPassEncryptedByEmail

func (r UserRepository) GetPassEncryptedByEmail(ctx context.Context, email string) (string, error)

func (UserRepository) Insert

func (r UserRepository) Insert(ctx context.Context, user entity.User, passEncrypted string) (uint32, error)

Jump to

Keyboard shortcuts

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