Documentation ¶
Index ¶
- type InMemoryMovieRepository
- func (i *InMemoryMovieRepository) Save(_ context.Context, movie movie.Movie) error
- func (i InMemoryMovieRepository) Search(_ context.Context, movieId movie.Id) (*movie.Movie, error)
- func (i InMemoryMovieRepository) SearchByCriteria(_ context.Context, criteria domain.Criteria) ([]*movie.Movie, error)
- type PostgresMovieRepository
- func (p *PostgresMovieRepository) Save(ctx context.Context, movie movie.Movie) error
- func (p *PostgresMovieRepository) Search(ctx context.Context, movieId movie.Id) (*movie.Movie, error)
- func (p *PostgresMovieRepository) SearchByCriteria(ctx context.Context, criteria domain.Criteria) ([]*movie.Movie, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryMovieRepository ¶
type InMemoryMovieRepository struct {
// contains filtered or unexported fields
}
@Repository @Adapter
func NewInMemoryMovieRepository ¶
func NewInMemoryMovieRepository() *InMemoryMovieRepository
func (InMemoryMovieRepository) SearchByCriteria ¶
type PostgresMovieRepository ¶
type PostgresMovieRepository struct {
// contains filtered or unexported fields
}
@Repository @Adapter
func NewPostgresMovieRepository ¶
func NewPostgresMovieRepository(db *sql.DB) *PostgresMovieRepository
func (*PostgresMovieRepository) SearchByCriteria ¶
Click to show internal directories.
Click to hide internal directories.