query

package
v0.0.0-...-d2cdecb Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCategoryQuery

func NewCategoryQuery(db *pgxpool.Pool) *categoryQuery

Types

type CategoryQuery

type CategoryQuery interface {
	GetCategory(ctx context.Context, req *api.GetCategoryRequest) (*api.GetCategoryResponse, error)
	ListCategories(ctx context.Context, req *api.ListCategoriesRequest) (*api.ListCategoriesResponse, error)
	CreateCategory(ctx context.Context, tx pgx.Tx, req *api.CreateCategoryRequest) (*api.CreateCategoryResponse, error)
	UpdateCategory(ctx context.Context, tx pgx.Tx, req *api.UpdateCategoryRequest) (*api.UpdateCategoryResponse, error)
	DeleteCategory(ctx context.Context, tx pgx.Tx, id *api.DeleteCategoryRequest) (*api.DeleteCategoryResponse, error)
}

Jump to

Keyboard shortcuts

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