repositories

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonCategoriesRepository

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

func NewCommonCategoriesRepository

func NewCommonCategoriesRepository(
	dbConnector db.Connector,
	logger *slog.Logger,
) *CommonCategoriesRepository

func (*CommonCategoriesRepository) GetAllCategories

func (repo *CommonCategoriesRepository) GetAllCategories(ctx context.Context) ([]entities.Category, error)

func (*CommonCategoriesRepository) GetCategoryByID

func (repo *CommonCategoriesRepository) GetCategoryByID(ctx context.Context, id uint32) (*entities.Category, error)

type CommonMastersRepository

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

func NewCommonMastersRepository

func NewCommonMastersRepository(
	dbConnector db.Connector,
	logger *slog.Logger,
) *CommonMastersRepository

func (*CommonMastersRepository) GetAllMasters

func (repo *CommonMastersRepository) GetAllMasters(ctx context.Context) ([]entities.Master, error)

func (*CommonMastersRepository) GetMasterByID

func (repo *CommonMastersRepository) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error)

func (*CommonMastersRepository) GetMasterByUserID

func (repo *CommonMastersRepository) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error)

func (*CommonMastersRepository) RegisterMaster

func (repo *CommonMastersRepository) RegisterMaster(
	ctx context.Context,
	masterData entities.RegisterMasterDTO,
) (uint64, error)

type CommonTagsRepository

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

func NewCommonTagsRepository

func NewCommonTagsRepository(
	dbConnector db.Connector,
	logger *slog.Logger,
) *CommonTagsRepository

func (*CommonTagsRepository) GetAllTags

func (repo *CommonTagsRepository) GetAllTags(ctx context.Context) ([]entities.Tag, error)

func (*CommonTagsRepository) GetTagByID

func (repo *CommonTagsRepository) GetTagByID(ctx context.Context, id uint32) (*entities.Tag, error)

type CommonToysRepository

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

func NewCommonToysRepository

func NewCommonToysRepository(
	dbConnector db.Connector,
	logger *slog.Logger,
) *CommonToysRepository

func (*CommonToysRepository) AddToy

func (repo *CommonToysRepository) AddToy(ctx context.Context, toyData entities.AddToyDTO) (uint64, error)

func (*CommonToysRepository) GetAllToys

func (repo *CommonToysRepository) GetAllToys(ctx context.Context) ([]entities.Toy, error)

func (*CommonToysRepository) GetMasterToys

func (repo *CommonToysRepository) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error)

func (*CommonToysRepository) GetToyByID

func (repo *CommonToysRepository) GetToyByID(ctx context.Context, id uint64) (*entities.Toy, error)

Jump to

Keyboard shortcuts

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