Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
func CompanyInstance ¶
type ProductRepository ¶
type ProductRepository interface { data.Repository[Product, uint] FindByCompany(ctx context.Context, company Company) ([]Product, error) }
ProductRepository is an example of belong-to or many-to-one association and lazy loading. Refer its implementation and unit tests in infra/product_repository_test.go.
Click to show internal directories.
Click to hide internal directories.