repository

package
v0.0.0-...-80d44ff Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

internal/infrastructure/repository/postgres_video_repository.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVideoRepository

func NewVideoRepository(cfg *config.Config, logger *slog.Logger) (interfaceRepo.VideoRepository, error)

NewVideoRepository は VideoRepository インターフェースの新しいインスタンスを作成します

Types

type MemoryVideoRepository

type MemoryVideoRepository struct {
	// contains filtered or unexported fields
}

func NewMemoryVideoRepository

func NewMemoryVideoRepository(logger *slog.Logger) *MemoryVideoRepository

func (*MemoryVideoRepository) FindByID

FindByID implements repository.VideoRepository.

func (*MemoryVideoRepository) Save

Save implements repository.VideoRepository.

func (*MemoryVideoRepository) Update

Update implements repository.VideoRepository.

type PostgresVideoRepository

type PostgresVideoRepository struct {
	// contains filtered or unexported fields
}

func NewPostgresVideoRepository

func NewPostgresVideoRepository(cfg *config.Config, logger *slog.Logger) (*PostgresVideoRepository, error)

func (*PostgresVideoRepository) Close

func (r *PostgresVideoRepository) Close() error

func (*PostgresVideoRepository) FindByID

func (*PostgresVideoRepository) Save

func (*PostgresVideoRepository) Update

Jump to

Keyboard shortcuts

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