youtube

package
v0.0.0-...-bb41b45 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package youtube is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IService

type IService interface {
	FindVideosByChannelID(id string) ([]*youtube.Video, error)
}

type MockIService

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

MockIService is a mock of IService interface.

func NewMockIService

func NewMockIService(ctrl *gomock.Controller) *MockIService

NewMockIService creates a new mock instance.

func (*MockIService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIService) FindVideosByChannelID

func (m *MockIService) FindVideosByChannelID(id string) ([]*youtube.Video, error)

FindVideosByChannelID mocks base method.

type MockIServiceMockRecorder

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

MockIServiceMockRecorder is the mock recorder for MockIService.

func (*MockIServiceMockRecorder) FindVideosByChannelID

func (mr *MockIServiceMockRecorder) FindVideosByChannelID(id any) *gomock.Call

FindVideosByChannelID indicates an expected call of FindVideosByChannelID.

type Repository

type Repository struct {
	Service IService
}

func NewRepository

func NewRepository(service IService) *Repository

func (*Repository) FindByID

func (rp *Repository) FindByID(_ context.Context, channelID string) (*youtube.Channel, error)

type Service

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

func NewService

func NewService(ctx context.Context, secretFile, tokenFile string) (*Service, error)

func (*Service) FindVideosByChannelID

func (sv *Service) FindVideosByChannelID(channelID string) ([]*youtube.Video, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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