mocked_services

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoryServiceMockCreate func(insertCategory dto.InsertCategory) (*models.Category, error)
View Source
var CategoryServiceMockDelete func(id primitive.ObjectID) error
View Source
var CategoryServiceMockGetAll func(filter string, page int64, pageSize int64) ([]models.Category, error)
View Source
var CategoryServiceMockGetByID func(id primitive.ObjectID) (*models.Category, error)
View Source
var CategoryServiceMockGetFreeCategory func() *models.Category
View Source
var CategoryServiceMockGetVideosByCategoryId func(id primitive.ObjectID) ([]models.Video, error)
View Source
var CategoryServiceMockUpdate func(id primitive.ObjectID, insertCategory dto.InsertCategory) (*models.Category, error)
View Source
var VideoServiceMockCreate func(video dto.InsertVideo) (*models.Video, error)
View Source
var VideoServiceMockDelete func(id primitive.ObjectID) error
View Source
var VideoServiceMockGetAll func(filter string, page int64, pageSize int64) ([]models.Video, error)
View Source
var VideoServiceMockGetAllFreeVideos func() ([]models.Video, error)
View Source
var VideoServiceMockGetById func(id primitive.ObjectID) (*models.Video, error)
View Source
var VideoServiceMockUpdate func(id primitive.ObjectID, newData dto.InsertVideo) (*models.Video, error)

Functions

This section is empty.

Types

type CategoryServiceMock

type CategoryServiceMock struct{}

func (*CategoryServiceMock) Create

func (cs *CategoryServiceMock) Create(insertCategory dto.InsertCategory) (*models.Category, error)

func (*CategoryServiceMock) Delete

func (*CategoryServiceMock) GetAll

func (cs *CategoryServiceMock) GetAll(filter string, page int64, pageSize int64) ([]models.Category, error)

func (*CategoryServiceMock) GetById

func (*CategoryServiceMock) GetFreeCategory

func (cs *CategoryServiceMock) GetFreeCategory() *models.Category

func (*CategoryServiceMock) GetVideosByCategoryId

func (cs *CategoryServiceMock) GetVideosByCategoryId(id primitive.ObjectID) ([]models.Video, error)

func (*CategoryServiceMock) Update

type VideoServiceMock

type VideoServiceMock struct{}

func (*VideoServiceMock) Create

func (vs *VideoServiceMock) Create(video dto.InsertVideo) (*models.Video, error)

func (*VideoServiceMock) Delete

func (vs *VideoServiceMock) Delete(id primitive.ObjectID) error

func (*VideoServiceMock) GetAll

func (vs *VideoServiceMock) GetAll(filter string, page int64, pageSize int64) ([]models.Video, error)

func (*VideoServiceMock) GetAllFreeVideos

func (vs *VideoServiceMock) GetAllFreeVideos() ([]models.Video, error)

func (*VideoServiceMock) GetByID

func (vs *VideoServiceMock) GetByID(id primitive.ObjectID) (*models.Video, error)

func (*VideoServiceMock) Update

func (vs *VideoServiceMock) Update(id primitive.ObjectID, newData dto.InsertVideo) (*models.Video, error)

Jump to

Keyboard shortcuts

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