video

package
v0.0.0-...-9f87b0a Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(v VideoRepository) *Service

NewService will create a new article service object

func (*Service) GetStreamReader

func (s *Service) GetStreamReader(ctx context.Context) (io.ReadCloser, error)

func (*Service) SearchVideos

func (s *Service) SearchVideos(ctx context.Context, text string, amount int64) ([]domain.SearchedVideo, error)

type VideoRepository

type VideoRepository interface {
	SearchVideos(text string, amount int64) ([]domain.SearchedVideo, error)
	GetStreamReader() (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

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