video

package
v0.0.0-...-7815bce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVideoNotFound = errors.New("Video not found in db")

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetVideo(id string) (*Video, error)
}

type SQLRepository

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

func NewVideoSQLRepository

func NewVideoSQLRepository(ctx context.Context, db *sqlx.DB) *SQLRepository

func (*SQLRepository) GetVideo

func (r *SQLRepository) GetVideo(id string) (*Video, error)

type Video

type Video struct {
	ID   uuid.UUID `json:"id"`
	Path string    `json:"path"`
}

Jump to

Keyboard shortcuts

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