Documentation ¶
Overview ¶
Package repo TODO.
Package repo TODO.
Index ¶
- Variables
- func GetAssetPostgresCachedRepo(prop env.Properties) domain.Repo[*entity.Asset]
- func GetAssetTxPostgres(prop env.Properties) domain.Dft[*entity.Asset]
- func GetAssetTypePostgresCachedRepo(prop env.Properties) domain.Repo[*entity.AssetType]
- func GetAssetTypePostgresRepo(prop env.Properties) domain.Repo[*entity.AssetType]
- func GetFavoritesDeletedPostgresRepo(prop env.Properties) domain.Repo[*entity.FavoritesDeleted]
- func GetFavoritesPostgresCachedRepo(prop env.Properties) domain.Repo[*entity.Favorites]
- func GetFavoritesTxPostgres(prop env.Properties) domain.Dft[*entity.Favorites]
- func GetUserPostgresCachedRepo(prop env.Properties) domain.Repo[*entity.User]
- func GetUserPostgresRepo(prop env.Properties) domain.Repo[*entity.User]
- type CachedPostgres
- func (p *CachedPostgres[E]) Delete(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- func (p *CachedPostgres[E]) Get(ctx context.Context, entity E, scan func(domain.Scanner)) (e E, err error)
- func (p *CachedPostgres[E]) GetByFilter(ctx context.Context, entity E, scan func(domain.Scanner) E) ([]E, error)
- func (p *CachedPostgres[E]) Insert(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- func (p *CachedPostgres[E]) Update(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- type Postgres
- func (p *Postgres[E]) Delete(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- func (p *Postgres[E]) Get(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- func (p *Postgres[E]) GetByFilter(ctx context.Context, entity E, scan func(domain.Scanner) E) ([]E, error)
- func (p *Postgres[E]) Insert(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- func (p *Postgres[E]) Update(ctx context.Context, entity E, scan func(domain.Scanner)) (E, error)
- type TxPostgres
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadPool = fmt.Errorf("bad Database pool")
)
View Source
var (
ErrNotFound = fmt.Errorf("not found in cache")
)
Functions ¶
func GetAssetTxPostgres ¶
func GetFavoritesDeletedPostgresRepo ¶
func GetFavoritesDeletedPostgresRepo(prop env.Properties) domain.Repo[*entity.FavoritesDeleted]
func GetFavoritesTxPostgres ¶
func GetUserPostgresRepo ¶
Types ¶
type CachedPostgres ¶
func (*CachedPostgres[E]) GetByFilter ¶
type Postgres ¶
func (*Postgres[E]) GetByFilter ¶
type TxPostgres ¶
Click to show internal directories.
Click to hide internal directories.