Documentation
¶
Index ¶
- func NewPostgresCatalogStore(db *sql.DB) ports.CatalogRepository
- type PostgresCatalogStore
- func (s *PostgresCatalogStore) GetBlueprint(ctx context.Context, id string) (*domain.Blueprint, error)
- func (s *PostgresCatalogStore) GetConstruct(ctx context.Context, id string) (*domain.Construct, error)
- func (s *PostgresCatalogStore) GetCrate(ctx context.Context, id string) (*domain.Crate, error)
- func (s *PostgresCatalogStore) ListBlueprints(ctx context.Context, crateID string) ([]*domain.Blueprint, error)
- func (s *PostgresCatalogStore) ListConstructs(ctx context.Context, crateID, blueprintID string) ([]*domain.Construct, error)
- func (s *PostgresCatalogStore) ListCrates(ctx context.Context, category string) ([]*domain.Crate, error)
- func (s *PostgresCatalogStore) UpsertBlueprint(ctx context.Context, b *domain.Blueprint) error
- func (s *PostgresCatalogStore) UpsertConstruct(ctx context.Context, c *domain.Construct) error
- func (s *PostgresCatalogStore) UpsertCrate(ctx context.Context, c *domain.Crate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresCatalogStore ¶
func NewPostgresCatalogStore(db *sql.DB) ports.CatalogRepository
Types ¶
type PostgresCatalogStore ¶
type PostgresCatalogStore struct {
// contains filtered or unexported fields
}
PostgresCatalogStore implements ports.CatalogRepository against PostgreSQL.
func (*PostgresCatalogStore) GetBlueprint ¶
func (*PostgresCatalogStore) GetConstruct ¶
func (*PostgresCatalogStore) ListBlueprints ¶
func (*PostgresCatalogStore) ListConstructs ¶
func (*PostgresCatalogStore) ListCrates ¶
func (*PostgresCatalogStore) UpsertBlueprint ¶
func (*PostgresCatalogStore) UpsertConstruct ¶
func (*PostgresCatalogStore) UpsertCrate ¶
Click to show internal directories.
Click to hide internal directories.