mock_dao

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Package mock_dao is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuditDao

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

MockAuditDao is a mock of AuditDao interface.

func NewMockAuditDao

func NewMockAuditDao(ctrl *gomock.Controller) *MockAuditDao

NewMockAuditDao creates a new mock instance.

func (*MockAuditDao) Create

func (m *MockAuditDao) Create(arg0 *model.Audit) error

Create mocks base method.

func (*MockAuditDao) EXPECT

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

func (*MockAuditDao) Find

func (m *MockAuditDao) Find(limit, offset int, types ...model.AuditType) ([]model.Audit, error)

Find mocks base method.

type MockAuditDaoMockRecorder

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

MockAuditDaoMockRecorder is the mock recorder for MockAuditDao.

func (*MockAuditDaoMockRecorder) Create

func (mr *MockAuditDaoMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockAuditDaoMockRecorder) Find

func (mr *MockAuditDaoMockRecorder) Find(limit, offset interface{}, types ...interface{}) *gomock.Call

Find indicates an expected call of Find.

type MockBookmarkDao

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

MockBookmarkDao is a mock of BookmarkDao interface.

func NewMockBookmarkDao

func NewMockBookmarkDao(ctrl *gomock.Controller) *MockBookmarkDao

NewMockBookmarkDao creates a new mock instance.

func (*MockBookmarkDao) Add

func (m *MockBookmarkDao) Add(arg0 *model.Bookmark) error

Add mocks base method.

func (*MockBookmarkDao) Delete

func (m *MockBookmarkDao) Delete(arg0 uint) error

Delete mocks base method.

func (*MockBookmarkDao) EXPECT

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

func (*MockBookmarkDao) GetByID

func (m *MockBookmarkDao) GetByID(arg0 uint) (model.Bookmark, error)

GetByID mocks base method.

func (*MockBookmarkDao) GetByStreamID

func (m *MockBookmarkDao) GetByStreamID(arg0, arg1 uint) ([]model.Bookmark, error)

GetByStreamID mocks base method.

func (*MockBookmarkDao) Update

func (m *MockBookmarkDao) Update(arg0 *model.Bookmark) error

Update mocks base method.

type MockBookmarkDaoMockRecorder

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

MockBookmarkDaoMockRecorder is the mock recorder for MockBookmarkDao.

func (*MockBookmarkDaoMockRecorder) Add

func (mr *MockBookmarkDaoMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockBookmarkDaoMockRecorder) Delete

func (mr *MockBookmarkDaoMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockBookmarkDaoMockRecorder) GetByID

func (mr *MockBookmarkDaoMockRecorder) GetByID(arg0 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockBookmarkDaoMockRecorder) GetByStreamID

func (mr *MockBookmarkDaoMockRecorder) GetByStreamID(arg0, arg1 interface{}) *gomock.Call

GetByStreamID indicates an expected call of GetByStreamID.

func (*MockBookmarkDaoMockRecorder) Update

func (mr *MockBookmarkDaoMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockCameraPresetDao

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

MockCameraPresetDao is a mock of CameraPresetDao interface.

func NewMockCameraPresetDao

func NewMockCameraPresetDao(ctrl *gomock.Controller) *MockCameraPresetDao

NewMockCameraPresetDao creates a new mock instance.

func (*MockCameraPresetDao) EXPECT

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

func (*MockCameraPresetDao) GetDefaultCameraPreset

func (m *MockCameraPresetDao) GetDefaultCameraPreset(lectureHallID uint) (model.CameraPreset, error)

GetDefaultCameraPreset mocks base method.

type MockCameraPresetDaoMockRecorder

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

MockCameraPresetDaoMockRecorder is the mock recorder for MockCameraPresetDao.

func (*MockCameraPresetDaoMockRecorder) GetDefaultCameraPreset

func (mr *MockCameraPresetDaoMockRecorder) GetDefaultCameraPreset(lectureHallID interface{}) *gomock.Call

GetDefaultCameraPreset indicates an expected call of GetDefaultCameraPreset.

type MockChatDao

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

MockChatDao is a mock of ChatDao interface.

func NewMockChatDao

func NewMockChatDao(ctrl *gomock.Controller) *MockChatDao

NewMockChatDao creates a new mock instance.

func (*MockChatDao) AddChatPoll

func (m *MockChatDao) AddChatPoll(poll *model.Poll) error

AddChatPoll mocks base method.

func (*MockChatDao) AddChatPollOptionVote

func (m *MockChatDao) AddChatPollOptionVote(pollOptionId, userId uint) error

AddChatPollOptionVote mocks base method.

func (*MockChatDao) AddMessage

func (m *MockChatDao) AddMessage(chat *model.Chat) error

AddMessage mocks base method.

func (*MockChatDao) ApproveChat

func (m *MockChatDao) ApproveChat(id uint) error

ApproveChat mocks base method.

func (*MockChatDao) CloseActivePoll

func (m *MockChatDao) CloseActivePoll(streamID uint) error

CloseActivePoll mocks base method.

func (*MockChatDao) DeleteChat

func (m *MockChatDao) DeleteChat(id uint) error

DeleteChat mocks base method.

func (*MockChatDao) EXPECT

func (m *MockChatDao) EXPECT() *MockChatDaoMockRecorder

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

func (*MockChatDao) GetActivePoll

func (m *MockChatDao) GetActivePoll(streamID uint) (model.Poll, error)

GetActivePoll mocks base method.

func (*MockChatDao) GetAllChats

func (m *MockChatDao) GetAllChats(userID, streamID uint) ([]model.Chat, error)

GetAllChats mocks base method.

func (*MockChatDao) GetChat

func (m *MockChatDao) GetChat(id, userID uint) (*model.Chat, error)

GetChat mocks base method.

func (*MockChatDao) GetChatUsers

func (m *MockChatDao) GetChatUsers(streamid uint) ([]model.User, error)

GetChatUsers mocks base method.

func (*MockChatDao) GetChatsByUser

func (m *MockChatDao) GetChatsByUser(userID uint) ([]model.Chat, error)

GetChatsByUser mocks base method.

func (*MockChatDao) GetPollOptionVoteCount

func (m *MockChatDao) GetPollOptionVoteCount(pollOptionId uint) (int64, error)

GetPollOptionVoteCount mocks base method.

func (*MockChatDao) GetPollUserVote

func (m *MockChatDao) GetPollUserVote(pollId, userId uint) (uint, error)

GetPollUserVote mocks base method.

func (*MockChatDao) GetPolls

func (m *MockChatDao) GetPolls(streamID uint) ([]model.Poll, error)

GetPolls mocks base method.

func (*MockChatDao) GetReactions

func (m *MockChatDao) GetReactions(chatID uint) ([]model.ChatReaction, error)

GetReactions mocks base method.

func (*MockChatDao) GetVisibleChats

func (m *MockChatDao) GetVisibleChats(userID, streamID uint) ([]model.Chat, error)

GetVisibleChats mocks base method.

func (*MockChatDao) RemoveReactions

func (m *MockChatDao) RemoveReactions(chatID uint) error

RemoveReactions mocks base method.

func (*MockChatDao) ResolveChat

func (m *MockChatDao) ResolveChat(id uint) error

ResolveChat mocks base method.

func (*MockChatDao) RetractChat

func (m *MockChatDao) RetractChat(id uint) error

RetractChat mocks base method.

func (*MockChatDao) ToggleReaction

func (m *MockChatDao) ToggleReaction(userID, chatID uint, username, emoji string) error

ToggleReaction mocks base method.

type MockChatDaoMockRecorder

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

MockChatDaoMockRecorder is the mock recorder for MockChatDao.

func (*MockChatDaoMockRecorder) AddChatPoll

func (mr *MockChatDaoMockRecorder) AddChatPoll(poll interface{}) *gomock.Call

AddChatPoll indicates an expected call of AddChatPoll.

func (*MockChatDaoMockRecorder) AddChatPollOptionVote

func (mr *MockChatDaoMockRecorder) AddChatPollOptionVote(pollOptionId, userId interface{}) *gomock.Call

AddChatPollOptionVote indicates an expected call of AddChatPollOptionVote.

func (*MockChatDaoMockRecorder) AddMessage

func (mr *MockChatDaoMockRecorder) AddMessage(chat interface{}) *gomock.Call

AddMessage indicates an expected call of AddMessage.

func (*MockChatDaoMockRecorder) ApproveChat

func (mr *MockChatDaoMockRecorder) ApproveChat(id interface{}) *gomock.Call

ApproveChat indicates an expected call of ApproveChat.

func (*MockChatDaoMockRecorder) CloseActivePoll

func (mr *MockChatDaoMockRecorder) CloseActivePoll(streamID interface{}) *gomock.Call

CloseActivePoll indicates an expected call of CloseActivePoll.

func (*MockChatDaoMockRecorder) DeleteChat

func (mr *MockChatDaoMockRecorder) DeleteChat(id interface{}) *gomock.Call

DeleteChat indicates an expected call of DeleteChat.

func (*MockChatDaoMockRecorder) GetActivePoll

func (mr *MockChatDaoMockRecorder) GetActivePoll(streamID interface{}) *gomock.Call

GetActivePoll indicates an expected call of GetActivePoll.

func (*MockChatDaoMockRecorder) GetAllChats

func (mr *MockChatDaoMockRecorder) GetAllChats(userID, streamID interface{}) *gomock.Call

GetAllChats indicates an expected call of GetAllChats.

func (*MockChatDaoMockRecorder) GetChat

func (mr *MockChatDaoMockRecorder) GetChat(id, userID interface{}) *gomock.Call

GetChat indicates an expected call of GetChat.

func (*MockChatDaoMockRecorder) GetChatUsers

func (mr *MockChatDaoMockRecorder) GetChatUsers(streamid interface{}) *gomock.Call

GetChatUsers indicates an expected call of GetChatUsers.

func (*MockChatDaoMockRecorder) GetChatsByUser

func (mr *MockChatDaoMockRecorder) GetChatsByUser(userID interface{}) *gomock.Call

GetChatsByUser indicates an expected call of GetChatsByUser.

func (*MockChatDaoMockRecorder) GetPollOptionVoteCount

func (mr *MockChatDaoMockRecorder) GetPollOptionVoteCount(pollOptionId interface{}) *gomock.Call

GetPollOptionVoteCount indicates an expected call of GetPollOptionVoteCount.

func (*MockChatDaoMockRecorder) GetPollUserVote

func (mr *MockChatDaoMockRecorder) GetPollUserVote(pollId, userId interface{}) *gomock.Call

GetPollUserVote indicates an expected call of GetPollUserVote.

func (*MockChatDaoMockRecorder) GetPolls

func (mr *MockChatDaoMockRecorder) GetPolls(streamID interface{}) *gomock.Call

GetPolls indicates an expected call of GetPolls.

func (*MockChatDaoMockRecorder) GetReactions

func (mr *MockChatDaoMockRecorder) GetReactions(chatID interface{}) *gomock.Call

GetReactions indicates an expected call of GetReactions.

func (*MockChatDaoMockRecorder) GetVisibleChats

func (mr *MockChatDaoMockRecorder) GetVisibleChats(userID, streamID interface{}) *gomock.Call

GetVisibleChats indicates an expected call of GetVisibleChats.

func (*MockChatDaoMockRecorder) RemoveReactions

func (mr *MockChatDaoMockRecorder) RemoveReactions(chatID interface{}) *gomock.Call

RemoveReactions indicates an expected call of RemoveReactions.

func (*MockChatDaoMockRecorder) ResolveChat

func (mr *MockChatDaoMockRecorder) ResolveChat(id interface{}) *gomock.Call

ResolveChat indicates an expected call of ResolveChat.

func (*MockChatDaoMockRecorder) RetractChat

func (mr *MockChatDaoMockRecorder) RetractChat(id interface{}) *gomock.Call

RetractChat indicates an expected call of RetractChat.

func (*MockChatDaoMockRecorder) ToggleReaction

func (mr *MockChatDaoMockRecorder) ToggleReaction(userID, chatID, username, emoji interface{}) *gomock.Call

ToggleReaction indicates an expected call of ToggleReaction.

type MockCoursesDao

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

MockCoursesDao is a mock of CoursesDao interface.

func NewMockCoursesDao

func NewMockCoursesDao(ctrl *gomock.Controller) *MockCoursesDao

NewMockCoursesDao creates a new mock instance.

func (*MockCoursesDao) AddAdminToCourse

func (m *MockCoursesDao) AddAdminToCourse(userID, courseID uint) error

AddAdminToCourse mocks base method.

func (*MockCoursesDao) CreateCourse

func (m *MockCoursesDao) CreateCourse(ctx context.Context, course *model.Course, keep bool) error

CreateCourse mocks base method.

func (*MockCoursesDao) DeleteCourse

func (m *MockCoursesDao) DeleteCourse(course model.Course)

DeleteCourse mocks base method.

func (*MockCoursesDao) EXPECT

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

func (*MockCoursesDao) GetAdministeredCoursesByUserId

func (m *MockCoursesDao) GetAdministeredCoursesByUserId(ctx context.Context, userid uint, teachingTerm string, year int) ([]model.Course, error)

GetAdministeredCoursesByUserId mocks base method.

func (*MockCoursesDao) GetAllCourses

func (m *MockCoursesDao) GetAllCourses() ([]model.Course, error)

GetAllCourses mocks base method.

func (*MockCoursesDao) GetAllCoursesForSemester

func (m *MockCoursesDao) GetAllCoursesForSemester(year int, term string, ctx context.Context) []model.Course

GetAllCoursesForSemester mocks base method.

func (*MockCoursesDao) GetAllCoursesWithTUMIDFromSemester

func (m *MockCoursesDao) GetAllCoursesWithTUMIDFromSemester(ctx context.Context, year int, term string) ([]model.Course, error)

GetAllCoursesWithTUMIDFromSemester mocks base method.

func (*MockCoursesDao) GetAvailableSemesters

func (m *MockCoursesDao) GetAvailableSemesters(c context.Context) []dao.Semester

GetAvailableSemesters mocks base method.

func (*MockCoursesDao) GetCourseAdmins

func (m *MockCoursesDao) GetCourseAdmins(courseID uint) ([]model.User, error)

GetCourseAdmins mocks base method.

func (*MockCoursesDao) GetCourseById

func (m *MockCoursesDao) GetCourseById(ctx context.Context, id uint) (model.Course, error)

GetCourseById mocks base method.

func (m *MockCoursesDao) GetCourseByShortLink(link string) (model.Course, error)

GetCourseByShortLink mocks base method.

func (*MockCoursesDao) GetCourseBySlugYearAndTerm

func (m *MockCoursesDao) GetCourseBySlugYearAndTerm(ctx context.Context, slug, term string, year int) (model.Course, error)

GetCourseBySlugYearAndTerm mocks base method.

func (*MockCoursesDao) GetCourseByToken

func (m *MockCoursesDao) GetCourseByToken(token string) (model.Course, error)

GetCourseByToken mocks base method.

func (*MockCoursesDao) GetCourseForLecturerIdByYearAndTerm

func (m *MockCoursesDao) GetCourseForLecturerIdByYearAndTerm(c context.Context, year int, term string, userId uint) ([]model.Course, error)

GetCourseForLecturerIdByYearAndTerm mocks base method.

func (*MockCoursesDao) GetCurrentOrNextLectureForCourse

func (m *MockCoursesDao) GetCurrentOrNextLectureForCourse(ctx context.Context, courseID uint) (model.Stream, error)

GetCurrentOrNextLectureForCourse mocks base method.

func (*MockCoursesDao) GetInvitedUsersForCourse

func (m *MockCoursesDao) GetInvitedUsersForCourse(course *model.Course) error

GetInvitedUsersForCourse mocks base method.

func (*MockCoursesDao) GetPublicAndLoggedInCourses

func (m *MockCoursesDao) GetPublicAndLoggedInCourses(year int, term string) ([]model.Course, error)

GetPublicAndLoggedInCourses mocks base method.

func (*MockCoursesDao) GetPublicCourses

func (m *MockCoursesDao) GetPublicCourses(year int, term string) ([]model.Course, error)

GetPublicCourses mocks base method.

func (*MockCoursesDao) RemoveAdminFromCourse

func (m *MockCoursesDao) RemoveAdminFromCourse(userID, courseID uint) error

RemoveAdminFromCourse mocks base method.

func (*MockCoursesDao) UnDeleteCourse

func (m *MockCoursesDao) UnDeleteCourse(ctx context.Context, course model.Course) error

UnDeleteCourse mocks base method.

func (*MockCoursesDao) UpdateCourse

func (m *MockCoursesDao) UpdateCourse(ctx context.Context, course model.Course) error

UpdateCourse mocks base method.

func (*MockCoursesDao) UpdateCourseMetadata

func (m *MockCoursesDao) UpdateCourseMetadata(ctx context.Context, course model.Course)

UpdateCourseMetadata mocks base method.

type MockCoursesDaoMockRecorder

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

MockCoursesDaoMockRecorder is the mock recorder for MockCoursesDao.

func (*MockCoursesDaoMockRecorder) AddAdminToCourse

func (mr *MockCoursesDaoMockRecorder) AddAdminToCourse(userID, courseID interface{}) *gomock.Call

AddAdminToCourse indicates an expected call of AddAdminToCourse.

func (*MockCoursesDaoMockRecorder) CreateCourse

func (mr *MockCoursesDaoMockRecorder) CreateCourse(ctx, course, keep interface{}) *gomock.Call

CreateCourse indicates an expected call of CreateCourse.

func (*MockCoursesDaoMockRecorder) DeleteCourse

func (mr *MockCoursesDaoMockRecorder) DeleteCourse(course interface{}) *gomock.Call

DeleteCourse indicates an expected call of DeleteCourse.

func (*MockCoursesDaoMockRecorder) GetAdministeredCoursesByUserId

func (mr *MockCoursesDaoMockRecorder) GetAdministeredCoursesByUserId(ctx, userid, teachingTerm, year interface{}) *gomock.Call

GetAdministeredCoursesByUserId indicates an expected call of GetAdministeredCoursesByUserId.

func (*MockCoursesDaoMockRecorder) GetAllCourses

func (mr *MockCoursesDaoMockRecorder) GetAllCourses() *gomock.Call

GetAllCourses indicates an expected call of GetAllCourses.

func (*MockCoursesDaoMockRecorder) GetAllCoursesForSemester

func (mr *MockCoursesDaoMockRecorder) GetAllCoursesForSemester(year, term, ctx interface{}) *gomock.Call

GetAllCoursesForSemester indicates an expected call of GetAllCoursesForSemester.

func (*MockCoursesDaoMockRecorder) GetAllCoursesWithTUMIDFromSemester

func (mr *MockCoursesDaoMockRecorder) GetAllCoursesWithTUMIDFromSemester(ctx, year, term interface{}) *gomock.Call

GetAllCoursesWithTUMIDFromSemester indicates an expected call of GetAllCoursesWithTUMIDFromSemester.

func (*MockCoursesDaoMockRecorder) GetAvailableSemesters

func (mr *MockCoursesDaoMockRecorder) GetAvailableSemesters(c interface{}) *gomock.Call

GetAvailableSemesters indicates an expected call of GetAvailableSemesters.

func (*MockCoursesDaoMockRecorder) GetCourseAdmins

func (mr *MockCoursesDaoMockRecorder) GetCourseAdmins(courseID interface{}) *gomock.Call

GetCourseAdmins indicates an expected call of GetCourseAdmins.

func (*MockCoursesDaoMockRecorder) GetCourseById

func (mr *MockCoursesDaoMockRecorder) GetCourseById(ctx, id interface{}) *gomock.Call

GetCourseById indicates an expected call of GetCourseById.

func (mr *MockCoursesDaoMockRecorder) GetCourseByShortLink(link interface{}) *gomock.Call

GetCourseByShortLink indicates an expected call of GetCourseByShortLink.

func (*MockCoursesDaoMockRecorder) GetCourseBySlugYearAndTerm

func (mr *MockCoursesDaoMockRecorder) GetCourseBySlugYearAndTerm(ctx, slug, term, year interface{}) *gomock.Call

GetCourseBySlugYearAndTerm indicates an expected call of GetCourseBySlugYearAndTerm.

func (*MockCoursesDaoMockRecorder) GetCourseByToken

func (mr *MockCoursesDaoMockRecorder) GetCourseByToken(token interface{}) *gomock.Call

GetCourseByToken indicates an expected call of GetCourseByToken.

func (*MockCoursesDaoMockRecorder) GetCourseForLecturerIdByYearAndTerm

func (mr *MockCoursesDaoMockRecorder) GetCourseForLecturerIdByYearAndTerm(c, year, term, userId interface{}) *gomock.Call

GetCourseForLecturerIdByYearAndTerm indicates an expected call of GetCourseForLecturerIdByYearAndTerm.

func (*MockCoursesDaoMockRecorder) GetCurrentOrNextLectureForCourse

func (mr *MockCoursesDaoMockRecorder) GetCurrentOrNextLectureForCourse(ctx, courseID interface{}) *gomock.Call

GetCurrentOrNextLectureForCourse indicates an expected call of GetCurrentOrNextLectureForCourse.

func (*MockCoursesDaoMockRecorder) GetInvitedUsersForCourse

func (mr *MockCoursesDaoMockRecorder) GetInvitedUsersForCourse(course interface{}) *gomock.Call

GetInvitedUsersForCourse indicates an expected call of GetInvitedUsersForCourse.

func (*MockCoursesDaoMockRecorder) GetPublicAndLoggedInCourses

func (mr *MockCoursesDaoMockRecorder) GetPublicAndLoggedInCourses(year, term interface{}) *gomock.Call

GetPublicAndLoggedInCourses indicates an expected call of GetPublicAndLoggedInCourses.

func (*MockCoursesDaoMockRecorder) GetPublicCourses

func (mr *MockCoursesDaoMockRecorder) GetPublicCourses(year, term interface{}) *gomock.Call

GetPublicCourses indicates an expected call of GetPublicCourses.

func (*MockCoursesDaoMockRecorder) RemoveAdminFromCourse

func (mr *MockCoursesDaoMockRecorder) RemoveAdminFromCourse(userID, courseID interface{}) *gomock.Call

RemoveAdminFromCourse indicates an expected call of RemoveAdminFromCourse.

func (*MockCoursesDaoMockRecorder) UnDeleteCourse

func (mr *MockCoursesDaoMockRecorder) UnDeleteCourse(ctx, course interface{}) *gomock.Call

UnDeleteCourse indicates an expected call of UnDeleteCourse.

func (*MockCoursesDaoMockRecorder) UpdateCourse

func (mr *MockCoursesDaoMockRecorder) UpdateCourse(ctx, course interface{}) *gomock.Call

UpdateCourse indicates an expected call of UpdateCourse.

func (*MockCoursesDaoMockRecorder) UpdateCourseMetadata

func (mr *MockCoursesDaoMockRecorder) UpdateCourseMetadata(ctx, course interface{}) *gomock.Call

UpdateCourseMetadata indicates an expected call of UpdateCourseMetadata.

type MockEmailDao

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

MockEmailDao is a mock of EmailDao interface.

func NewMockEmailDao

func NewMockEmailDao(ctrl *gomock.Controller) *MockEmailDao

NewMockEmailDao creates a new mock instance.

func (*MockEmailDao) Create

func (m *MockEmailDao) Create(arg0 context.Context, arg1 *model.Email) error

Create mocks base method.

func (*MockEmailDao) Delete

func (m *MockEmailDao) Delete(arg0 context.Context, arg1 uint) error

Delete mocks base method.

func (*MockEmailDao) EXPECT

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

func (*MockEmailDao) Get

func (m *MockEmailDao) Get(arg0 context.Context, arg1 uint) (model.Email, error)

Get mocks base method.

func (*MockEmailDao) GetDue

func (m *MockEmailDao) GetDue(arg0 context.Context, arg1 int) ([]model.Email, error)

GetDue mocks base method.

func (*MockEmailDao) GetFailed

func (m *MockEmailDao) GetFailed(arg0 context.Context) ([]model.Email, error)

GetFailed mocks base method.

func (*MockEmailDao) Save

func (m *MockEmailDao) Save(arg0 context.Context, arg1 *model.Email) error

Save mocks base method.

type MockEmailDaoMockRecorder

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

MockEmailDaoMockRecorder is the mock recorder for MockEmailDao.

func (*MockEmailDaoMockRecorder) Create

func (mr *MockEmailDaoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockEmailDaoMockRecorder) Delete

func (mr *MockEmailDaoMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockEmailDaoMockRecorder) Get

func (mr *MockEmailDaoMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockEmailDaoMockRecorder) GetDue

func (mr *MockEmailDaoMockRecorder) GetDue(arg0, arg1 interface{}) *gomock.Call

GetDue indicates an expected call of GetDue.

func (*MockEmailDaoMockRecorder) GetFailed

func (mr *MockEmailDaoMockRecorder) GetFailed(arg0 interface{}) *gomock.Call

GetFailed indicates an expected call of GetFailed.

func (*MockEmailDaoMockRecorder) Save

func (mr *MockEmailDaoMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call

Save indicates an expected call of Save.

type MockFileDao

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

MockFileDao is a mock of FileDao interface.

func NewMockFileDao

func NewMockFileDao(ctrl *gomock.Controller) *MockFileDao

NewMockFileDao creates a new mock instance.

func (*MockFileDao) CountVoDFiles

func (m *MockFileDao) CountVoDFiles() (int64, error)

CountVoDFiles mocks base method.

func (*MockFileDao) DeleteFile

func (m *MockFileDao) DeleteFile(id uint) error

DeleteFile mocks base method.

func (*MockFileDao) EXPECT

func (m *MockFileDao) EXPECT() *MockFileDaoMockRecorder

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

func (*MockFileDao) GetFileById

func (m *MockFileDao) GetFileById(id string) (model.File, error)

GetFileById mocks base method.

func (*MockFileDao) NewFile

func (m *MockFileDao) NewFile(f *model.File) error

NewFile mocks base method.

func (*MockFileDao) SetThumbnail

func (m *MockFileDao) SetThumbnail(streamId uint, thumb model.File) error

SetThumbnail mocks base method.

func (*MockFileDao) UpdateFile

func (m *MockFileDao) UpdateFile(id string, f *model.File) error

UpdateFile mocks base method.

type MockFileDaoMockRecorder

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

MockFileDaoMockRecorder is the mock recorder for MockFileDao.

func (*MockFileDaoMockRecorder) CountVoDFiles

func (mr *MockFileDaoMockRecorder) CountVoDFiles() *gomock.Call

CountVoDFiles indicates an expected call of CountVoDFiles.

func (*MockFileDaoMockRecorder) DeleteFile

func (mr *MockFileDaoMockRecorder) DeleteFile(id interface{}) *gomock.Call

DeleteFile indicates an expected call of DeleteFile.

func (*MockFileDaoMockRecorder) GetFileById

func (mr *MockFileDaoMockRecorder) GetFileById(id interface{}) *gomock.Call

GetFileById indicates an expected call of GetFileById.

func (*MockFileDaoMockRecorder) NewFile

func (mr *MockFileDaoMockRecorder) NewFile(f interface{}) *gomock.Call

NewFile indicates an expected call of NewFile.

func (*MockFileDaoMockRecorder) SetThumbnail

func (mr *MockFileDaoMockRecorder) SetThumbnail(streamId, thumb interface{}) *gomock.Call

SetThumbnail indicates an expected call of SetThumbnail.

func (*MockFileDaoMockRecorder) UpdateFile

func (mr *MockFileDaoMockRecorder) UpdateFile(id, f interface{}) *gomock.Call

UpdateFile indicates an expected call of UpdateFile.

type MockInfoPageDao

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

MockInfoPageDao is a mock of InfoPageDao interface.

func NewMockInfoPageDao

func NewMockInfoPageDao(ctrl *gomock.Controller) *MockInfoPageDao

NewMockInfoPageDao creates a new mock instance.

func (*MockInfoPageDao) EXPECT

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

func (*MockInfoPageDao) GetAll

func (m *MockInfoPageDao) GetAll() ([]model.InfoPage, error)

GetAll mocks base method.

func (*MockInfoPageDao) GetById

func (m *MockInfoPageDao) GetById(arg0 uint) (model.InfoPage, error)

GetById mocks base method.

func (*MockInfoPageDao) New

func (m *MockInfoPageDao) New(arg0 *model.InfoPage) error

New mocks base method.

func (*MockInfoPageDao) Update

func (m *MockInfoPageDao) Update(arg0 uint, arg1 *model.InfoPage) error

Update mocks base method.

type MockInfoPageDaoMockRecorder

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

MockInfoPageDaoMockRecorder is the mock recorder for MockInfoPageDao.

func (*MockInfoPageDaoMockRecorder) GetAll

func (mr *MockInfoPageDaoMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockInfoPageDaoMockRecorder) GetById

func (mr *MockInfoPageDaoMockRecorder) GetById(arg0 interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockInfoPageDaoMockRecorder) New

func (mr *MockInfoPageDaoMockRecorder) New(arg0 interface{}) *gomock.Call

New indicates an expected call of New.

func (*MockInfoPageDaoMockRecorder) Update

func (mr *MockInfoPageDaoMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockIngestServerDao

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

MockIngestServerDao is a mock of IngestServerDao interface.

func NewMockIngestServerDao

func NewMockIngestServerDao(ctrl *gomock.Controller) *MockIngestServerDao

NewMockIngestServerDao creates a new mock instance.

func (*MockIngestServerDao) EXPECT

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

func (*MockIngestServerDao) GetBestIngestServer

func (m *MockIngestServerDao) GetBestIngestServer() (model.IngestServer, error)

GetBestIngestServer mocks base method.

func (*MockIngestServerDao) GetStreamSlot

func (m *MockIngestServerDao) GetStreamSlot(ingestServerID uint) (model.StreamName, error)

GetStreamSlot mocks base method.

func (*MockIngestServerDao) GetTranscodedStreamSlot

func (m *MockIngestServerDao) GetTranscodedStreamSlot(ingestServerID uint) (model.StreamName, error)

GetTranscodedStreamSlot mocks base method.

func (*MockIngestServerDao) RemoveStreamFromSlot

func (m *MockIngestServerDao) RemoveStreamFromSlot(streamID uint) error

RemoveStreamFromSlot mocks base method.

func (*MockIngestServerDao) SaveIngestServer

func (m *MockIngestServerDao) SaveIngestServer(server model.IngestServer)

SaveIngestServer mocks base method.

func (*MockIngestServerDao) SaveSlot

func (m *MockIngestServerDao) SaveSlot(slot model.StreamName)

SaveSlot mocks base method.

type MockIngestServerDaoMockRecorder

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

MockIngestServerDaoMockRecorder is the mock recorder for MockIngestServerDao.

func (*MockIngestServerDaoMockRecorder) GetBestIngestServer

func (mr *MockIngestServerDaoMockRecorder) GetBestIngestServer() *gomock.Call

GetBestIngestServer indicates an expected call of GetBestIngestServer.

func (*MockIngestServerDaoMockRecorder) GetStreamSlot

func (mr *MockIngestServerDaoMockRecorder) GetStreamSlot(ingestServerID interface{}) *gomock.Call

GetStreamSlot indicates an expected call of GetStreamSlot.

func (*MockIngestServerDaoMockRecorder) GetTranscodedStreamSlot

func (mr *MockIngestServerDaoMockRecorder) GetTranscodedStreamSlot(ingestServerID interface{}) *gomock.Call

GetTranscodedStreamSlot indicates an expected call of GetTranscodedStreamSlot.

func (*MockIngestServerDaoMockRecorder) RemoveStreamFromSlot

func (mr *MockIngestServerDaoMockRecorder) RemoveStreamFromSlot(streamID interface{}) *gomock.Call

RemoveStreamFromSlot indicates an expected call of RemoveStreamFromSlot.

func (*MockIngestServerDaoMockRecorder) SaveIngestServer

func (mr *MockIngestServerDaoMockRecorder) SaveIngestServer(server interface{}) *gomock.Call

SaveIngestServer indicates an expected call of SaveIngestServer.

func (*MockIngestServerDaoMockRecorder) SaveSlot

func (mr *MockIngestServerDaoMockRecorder) SaveSlot(slot interface{}) *gomock.Call

SaveSlot indicates an expected call of SaveSlot.

type MockLectureHallsDao

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

MockLectureHallsDao is a mock of LectureHallsDao interface.

func NewMockLectureHallsDao

func NewMockLectureHallsDao(ctrl *gomock.Controller) *MockLectureHallsDao

NewMockLectureHallsDao creates a new mock instance.

func (*MockLectureHallsDao) CreateLectureHall

func (m *MockLectureHallsDao) CreateLectureHall(lectureHall model.LectureHall)

CreateLectureHall mocks base method.

func (*MockLectureHallsDao) DeleteLectureHall

func (m *MockLectureHallsDao) DeleteLectureHall(id uint) error

DeleteLectureHall mocks base method.

func (*MockLectureHallsDao) EXPECT

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

func (*MockLectureHallsDao) FindPreset

func (m *MockLectureHallsDao) FindPreset(lectureHallID, presetID string) (model.CameraPreset, error)

FindPreset mocks base method.

func (*MockLectureHallsDao) GetAllLectureHalls

func (m *MockLectureHallsDao) GetAllLectureHalls() []model.LectureHall

GetAllLectureHalls mocks base method.

func (*MockLectureHallsDao) GetLectureHallByID

func (m *MockLectureHallsDao) GetLectureHallByID(id uint) (model.LectureHall, error)

GetLectureHallByID mocks base method.

func (*MockLectureHallsDao) GetLectureHallByPartialName

func (m *MockLectureHallsDao) GetLectureHallByPartialName(name string) (model.LectureHall, error)

GetLectureHallByPartialName mocks base method.

func (*MockLectureHallsDao) GetStreamsForLectureHallIcal

func (m *MockLectureHallsDao) GetStreamsForLectureHallIcal(userId uint, lectureHalls []uint, all bool) ([]dao.CalendarResult, error)

GetStreamsForLectureHallIcal mocks base method.

func (*MockLectureHallsDao) SaveLectureHall

func (m *MockLectureHallsDao) SaveLectureHall(lectureHall model.LectureHall) error

SaveLectureHall mocks base method.

func (*MockLectureHallsDao) SaveLectureHallFullAssoc

func (m *MockLectureHallsDao) SaveLectureHallFullAssoc(lectureHall model.LectureHall)

SaveLectureHallFullAssoc mocks base method.

func (*MockLectureHallsDao) SavePreset

func (m *MockLectureHallsDao) SavePreset(preset model.CameraPreset) error

SavePreset mocks base method.

func (*MockLectureHallsDao) UnsetDefaults

func (m *MockLectureHallsDao) UnsetDefaults(lectureHallID string) error

UnsetDefaults mocks base method.

type MockLectureHallsDaoMockRecorder

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

MockLectureHallsDaoMockRecorder is the mock recorder for MockLectureHallsDao.

func (*MockLectureHallsDaoMockRecorder) CreateLectureHall

func (mr *MockLectureHallsDaoMockRecorder) CreateLectureHall(lectureHall interface{}) *gomock.Call

CreateLectureHall indicates an expected call of CreateLectureHall.

func (*MockLectureHallsDaoMockRecorder) DeleteLectureHall

func (mr *MockLectureHallsDaoMockRecorder) DeleteLectureHall(id interface{}) *gomock.Call

DeleteLectureHall indicates an expected call of DeleteLectureHall.

func (*MockLectureHallsDaoMockRecorder) FindPreset

func (mr *MockLectureHallsDaoMockRecorder) FindPreset(lectureHallID, presetID interface{}) *gomock.Call

FindPreset indicates an expected call of FindPreset.

func (*MockLectureHallsDaoMockRecorder) GetAllLectureHalls

func (mr *MockLectureHallsDaoMockRecorder) GetAllLectureHalls() *gomock.Call

GetAllLectureHalls indicates an expected call of GetAllLectureHalls.

func (*MockLectureHallsDaoMockRecorder) GetLectureHallByID

func (mr *MockLectureHallsDaoMockRecorder) GetLectureHallByID(id interface{}) *gomock.Call

GetLectureHallByID indicates an expected call of GetLectureHallByID.

func (*MockLectureHallsDaoMockRecorder) GetLectureHallByPartialName

func (mr *MockLectureHallsDaoMockRecorder) GetLectureHallByPartialName(name interface{}) *gomock.Call

GetLectureHallByPartialName indicates an expected call of GetLectureHallByPartialName.

func (*MockLectureHallsDaoMockRecorder) GetStreamsForLectureHallIcal

func (mr *MockLectureHallsDaoMockRecorder) GetStreamsForLectureHallIcal(userId, lectureHalls, all interface{}) *gomock.Call

GetStreamsForLectureHallIcal indicates an expected call of GetStreamsForLectureHallIcal.

func (*MockLectureHallsDaoMockRecorder) SaveLectureHall

func (mr *MockLectureHallsDaoMockRecorder) SaveLectureHall(lectureHall interface{}) *gomock.Call

SaveLectureHall indicates an expected call of SaveLectureHall.

func (*MockLectureHallsDaoMockRecorder) SaveLectureHallFullAssoc

func (mr *MockLectureHallsDaoMockRecorder) SaveLectureHallFullAssoc(lectureHall interface{}) *gomock.Call

SaveLectureHallFullAssoc indicates an expected call of SaveLectureHallFullAssoc.

func (*MockLectureHallsDaoMockRecorder) SavePreset

func (mr *MockLectureHallsDaoMockRecorder) SavePreset(preset interface{}) *gomock.Call

SavePreset indicates an expected call of SavePreset.

func (*MockLectureHallsDaoMockRecorder) UnsetDefaults

func (mr *MockLectureHallsDaoMockRecorder) UnsetDefaults(lectureHallID interface{}) *gomock.Call

UnsetDefaults indicates an expected call of UnsetDefaults.

type MockNotificationsDao

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

MockNotificationsDao is a mock of NotificationsDao interface.

func NewMockNotificationsDao

func NewMockNotificationsDao(ctrl *gomock.Controller) *MockNotificationsDao

NewMockNotificationsDao creates a new mock instance.

func (*MockNotificationsDao) AddNotification

func (m *MockNotificationsDao) AddNotification(notification *model.Notification) error

AddNotification mocks base method.

func (*MockNotificationsDao) DeleteNotification

func (m *MockNotificationsDao) DeleteNotification(id uint) error

DeleteNotification mocks base method.

func (*MockNotificationsDao) EXPECT

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

func (*MockNotificationsDao) GetAllNotifications

func (m *MockNotificationsDao) GetAllNotifications() ([]model.Notification, error)

GetAllNotifications mocks base method.

func (*MockNotificationsDao) GetNotifications

func (m *MockNotificationsDao) GetNotifications(target ...model.NotificationTarget) ([]model.Notification, error)

GetNotifications mocks base method.

type MockNotificationsDaoMockRecorder

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

MockNotificationsDaoMockRecorder is the mock recorder for MockNotificationsDao.

func (*MockNotificationsDaoMockRecorder) AddNotification

func (mr *MockNotificationsDaoMockRecorder) AddNotification(notification interface{}) *gomock.Call

AddNotification indicates an expected call of AddNotification.

func (*MockNotificationsDaoMockRecorder) DeleteNotification

func (mr *MockNotificationsDaoMockRecorder) DeleteNotification(id interface{}) *gomock.Call

DeleteNotification indicates an expected call of DeleteNotification.

func (*MockNotificationsDaoMockRecorder) GetAllNotifications

func (mr *MockNotificationsDaoMockRecorder) GetAllNotifications() *gomock.Call

GetAllNotifications indicates an expected call of GetAllNotifications.

func (*MockNotificationsDaoMockRecorder) GetNotifications

func (mr *MockNotificationsDaoMockRecorder) GetNotifications(target ...interface{}) *gomock.Call

GetNotifications indicates an expected call of GetNotifications.

type MockProgressDao

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

MockProgressDao is a mock of ProgressDao interface.

func NewMockProgressDao

func NewMockProgressDao(ctrl *gomock.Controller) *MockProgressDao

NewMockProgressDao creates a new mock instance.

func (*MockProgressDao) EXPECT

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

func (*MockProgressDao) GetProgressesForUser

func (m *MockProgressDao) GetProgressesForUser(userID uint) ([]model.StreamProgress, error)

GetProgressesForUser mocks base method.

func (*MockProgressDao) LoadProgress

func (m *MockProgressDao) LoadProgress(userID uint, streamIDs []uint) ([]model.StreamProgress, error)

LoadProgress mocks base method.

func (*MockProgressDao) SaveProgresses

func (m *MockProgressDao) SaveProgresses(progresses []model.StreamProgress) error

SaveProgresses mocks base method.

func (*MockProgressDao) SaveWatchedState

func (m *MockProgressDao) SaveWatchedState(progress *model.StreamProgress) error

SaveWatchedState mocks base method.

type MockProgressDaoMockRecorder

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

MockProgressDaoMockRecorder is the mock recorder for MockProgressDao.

func (*MockProgressDaoMockRecorder) GetProgressesForUser

func (mr *MockProgressDaoMockRecorder) GetProgressesForUser(userID interface{}) *gomock.Call

GetProgressesForUser indicates an expected call of GetProgressesForUser.

func (*MockProgressDaoMockRecorder) LoadProgress

func (mr *MockProgressDaoMockRecorder) LoadProgress(userID, streamIDs interface{}) *gomock.Call

LoadProgress indicates an expected call of LoadProgress.

func (*MockProgressDaoMockRecorder) SaveProgresses

func (mr *MockProgressDaoMockRecorder) SaveProgresses(progresses interface{}) *gomock.Call

SaveProgresses indicates an expected call of SaveProgresses.

func (*MockProgressDaoMockRecorder) SaveWatchedState

func (mr *MockProgressDaoMockRecorder) SaveWatchedState(progress interface{}) *gomock.Call

SaveWatchedState indicates an expected call of SaveWatchedState.

type MockServerNotificationDao

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

MockServerNotificationDao is a mock of ServerNotificationDao interface.

func NewMockServerNotificationDao

func NewMockServerNotificationDao(ctrl *gomock.Controller) *MockServerNotificationDao

NewMockServerNotificationDao creates a new mock instance.

func (*MockServerNotificationDao) CreateServerNotification

func (m *MockServerNotificationDao) CreateServerNotification(notification model.ServerNotification) error

CreateServerNotification mocks base method.

func (*MockServerNotificationDao) DeleteServerNotification

func (m *MockServerNotificationDao) DeleteServerNotification(notificationId string) error

DeleteServerNotification mocks base method.

func (*MockServerNotificationDao) EXPECT

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

func (*MockServerNotificationDao) GetAllServerNotifications

func (m *MockServerNotificationDao) GetAllServerNotifications() ([]model.ServerNotification, error)

GetAllServerNotifications mocks base method.

func (*MockServerNotificationDao) GetCurrentServerNotifications

func (m *MockServerNotificationDao) GetCurrentServerNotifications() ([]model.ServerNotification, error)

GetCurrentServerNotifications mocks base method.

func (*MockServerNotificationDao) UpdateServerNotification

func (m *MockServerNotificationDao) UpdateServerNotification(notification model.ServerNotification, id string) error

UpdateServerNotification mocks base method.

type MockServerNotificationDaoMockRecorder

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

MockServerNotificationDaoMockRecorder is the mock recorder for MockServerNotificationDao.

func (*MockServerNotificationDaoMockRecorder) CreateServerNotification

func (mr *MockServerNotificationDaoMockRecorder) CreateServerNotification(notification interface{}) *gomock.Call

CreateServerNotification indicates an expected call of CreateServerNotification.

func (*MockServerNotificationDaoMockRecorder) DeleteServerNotification

func (mr *MockServerNotificationDaoMockRecorder) DeleteServerNotification(notificationId interface{}) *gomock.Call

DeleteServerNotification indicates an expected call of DeleteServerNotification.

func (*MockServerNotificationDaoMockRecorder) GetAllServerNotifications

func (mr *MockServerNotificationDaoMockRecorder) GetAllServerNotifications() *gomock.Call

GetAllServerNotifications indicates an expected call of GetAllServerNotifications.

func (*MockServerNotificationDaoMockRecorder) GetCurrentServerNotifications

func (mr *MockServerNotificationDaoMockRecorder) GetCurrentServerNotifications() *gomock.Call

GetCurrentServerNotifications indicates an expected call of GetCurrentServerNotifications.

func (*MockServerNotificationDaoMockRecorder) UpdateServerNotification

func (mr *MockServerNotificationDaoMockRecorder) UpdateServerNotification(notification, id interface{}) *gomock.Call

UpdateServerNotification indicates an expected call of UpdateServerNotification.

type MockStatisticsDao

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

MockStatisticsDao is a mock of StatisticsDao interface.

func NewMockStatisticsDao

func NewMockStatisticsDao(ctrl *gomock.Controller) *MockStatisticsDao

NewMockStatisticsDao creates a new mock instance.

func (*MockStatisticsDao) AddStat

func (m *MockStatisticsDao) AddStat(stat model.Stat) error

AddStat mocks base method.

func (*MockStatisticsDao) EXPECT

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

func (*MockStatisticsDao) GetCourseNumLiveViews

func (m *MockStatisticsDao) GetCourseNumLiveViews(courseID uint) (int, error)

GetCourseNumLiveViews mocks base method.

func (*MockStatisticsDao) GetCourseNumStudents

func (m *MockStatisticsDao) GetCourseNumStudents(courseID uint) (int64, error)

GetCourseNumStudents mocks base method.

func (*MockStatisticsDao) GetCourseNumVodViews

func (m *MockStatisticsDao) GetCourseNumVodViews(courseID uint) (int, error)

GetCourseNumVodViews mocks base method.

func (*MockStatisticsDao) GetCourseNumVodViewsPerDay

func (m *MockStatisticsDao) GetCourseNumVodViewsPerDay(courseID uint) ([]dao.Stat, error)

GetCourseNumVodViewsPerDay mocks base method.

func (*MockStatisticsDao) GetCourseStatsHourly

func (m *MockStatisticsDao) GetCourseStatsHourly(courseID uint) ([]dao.Stat, error)

GetCourseStatsHourly mocks base method.

func (*MockStatisticsDao) GetCourseStatsWeekdays

func (m *MockStatisticsDao) GetCourseStatsWeekdays(courseID uint) ([]dao.Stat, error)

GetCourseStatsWeekdays mocks base method.

func (*MockStatisticsDao) GetStreamNumLiveViews

func (m *MockStatisticsDao) GetStreamNumLiveViews(streamID uint) (int, error)

GetStreamNumLiveViews mocks base method.

func (*MockStatisticsDao) GetStudentActivityCourseStats

func (m *MockStatisticsDao) GetStudentActivityCourseStats(courseID uint, live bool) ([]dao.Stat, error)

GetStudentActivityCourseStats mocks base method.

type MockStatisticsDaoMockRecorder

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

MockStatisticsDaoMockRecorder is the mock recorder for MockStatisticsDao.

func (*MockStatisticsDaoMockRecorder) AddStat

func (mr *MockStatisticsDaoMockRecorder) AddStat(stat interface{}) *gomock.Call

AddStat indicates an expected call of AddStat.

func (*MockStatisticsDaoMockRecorder) GetCourseNumLiveViews

func (mr *MockStatisticsDaoMockRecorder) GetCourseNumLiveViews(courseID interface{}) *gomock.Call

GetCourseNumLiveViews indicates an expected call of GetCourseNumLiveViews.

func (*MockStatisticsDaoMockRecorder) GetCourseNumStudents

func (mr *MockStatisticsDaoMockRecorder) GetCourseNumStudents(courseID interface{}) *gomock.Call

GetCourseNumStudents indicates an expected call of GetCourseNumStudents.

func (*MockStatisticsDaoMockRecorder) GetCourseNumVodViews

func (mr *MockStatisticsDaoMockRecorder) GetCourseNumVodViews(courseID interface{}) *gomock.Call

GetCourseNumVodViews indicates an expected call of GetCourseNumVodViews.

func (*MockStatisticsDaoMockRecorder) GetCourseNumVodViewsPerDay

func (mr *MockStatisticsDaoMockRecorder) GetCourseNumVodViewsPerDay(courseID interface{}) *gomock.Call

GetCourseNumVodViewsPerDay indicates an expected call of GetCourseNumVodViewsPerDay.

func (*MockStatisticsDaoMockRecorder) GetCourseStatsHourly

func (mr *MockStatisticsDaoMockRecorder) GetCourseStatsHourly(courseID interface{}) *gomock.Call

GetCourseStatsHourly indicates an expected call of GetCourseStatsHourly.

func (*MockStatisticsDaoMockRecorder) GetCourseStatsWeekdays

func (mr *MockStatisticsDaoMockRecorder) GetCourseStatsWeekdays(courseID interface{}) *gomock.Call

GetCourseStatsWeekdays indicates an expected call of GetCourseStatsWeekdays.

func (*MockStatisticsDaoMockRecorder) GetStreamNumLiveViews

func (mr *MockStatisticsDaoMockRecorder) GetStreamNumLiveViews(streamID interface{}) *gomock.Call

GetStreamNumLiveViews indicates an expected call of GetStreamNumLiveViews.

func (*MockStatisticsDaoMockRecorder) GetStudentActivityCourseStats

func (mr *MockStatisticsDaoMockRecorder) GetStudentActivityCourseStats(courseID, live interface{}) *gomock.Call

GetStudentActivityCourseStats indicates an expected call of GetStudentActivityCourseStats.

type MockStreamsDao

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

MockStreamsDao is a mock of StreamsDao interface.

func NewMockStreamsDao

func NewMockStreamsDao(ctrl *gomock.Controller) *MockStreamsDao

NewMockStreamsDao creates a new mock instance.

func (*MockStreamsDao) AddVodView

func (m *MockStreamsDao) AddVodView(id string) error

AddVodView mocks base method.

func (*MockStreamsDao) ClearWorkersForStream

func (m *MockStreamsDao) ClearWorkersForStream(stream model.Stream) error

ClearWorkersForStream mocks base method.

func (*MockStreamsDao) CreateStream

func (m *MockStreamsDao) CreateStream(stream *model.Stream) error

CreateStream mocks base method.

func (*MockStreamsDao) DeleteLectureSeries

func (m *MockStreamsDao) DeleteLectureSeries(arg0 string) error

DeleteLectureSeries mocks base method.

func (*MockStreamsDao) DeleteSilences

func (m *MockStreamsDao) DeleteSilences(streamID string) error

DeleteSilences mocks base method.

func (*MockStreamsDao) DeleteStream

func (m *MockStreamsDao) DeleteStream(streamID string)

DeleteStream mocks base method.

func (*MockStreamsDao) DeleteStreamsWithTumID

func (m *MockStreamsDao) DeleteStreamsWithTumID(ids []uint)

DeleteStreamsWithTumID mocks base method.

func (*MockStreamsDao) DeleteUnit

func (m *MockStreamsDao) DeleteUnit(id uint)

DeleteUnit mocks base method.

func (*MockStreamsDao) EXPECT

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

func (*MockStreamsDao) ExecAllStreamsWithCoursesAndSubtitles

func (m *MockStreamsDao) ExecAllStreamsWithCoursesAndSubtitles(f func([]dao.StreamWithCourseAndSubtitles))

ExecAllStreamsWithCoursesAndSubtitles mocks base method.

func (*MockStreamsDao) GetAllStreams

func (m *MockStreamsDao) GetAllStreams() ([]model.Stream, error)

GetAllStreams mocks base method.

func (*MockStreamsDao) GetCurrentLive

func (m *MockStreamsDao) GetCurrentLive(ctx context.Context) ([]model.Stream, error)

GetCurrentLive mocks base method.

func (*MockStreamsDao) GetCurrentLiveNonHidden

func (m *MockStreamsDao) GetCurrentLiveNonHidden(ctx context.Context) ([]model.Stream, error)

GetCurrentLiveNonHidden mocks base method.

func (*MockStreamsDao) GetDuePremieresForWorkers

func (m *MockStreamsDao) GetDuePremieresForWorkers() []model.Stream

GetDuePremieresForWorkers mocks base method.

func (*MockStreamsDao) GetDueStreamsForWorkers

func (m *MockStreamsDao) GetDueStreamsForWorkers() []model.Stream

GetDueStreamsForWorkers mocks base method.

func (*MockStreamsDao) GetLiveStreamsInLectureHall

func (m *MockStreamsDao) GetLiveStreamsInLectureHall(lectureHallId uint) ([]model.Stream, error)

GetLiveStreamsInLectureHall mocks base method.

func (*MockStreamsDao) GetStreamByID

func (m *MockStreamsDao) GetStreamByID(ctx context.Context, id string) (model.Stream, error)

GetStreamByID mocks base method.

func (*MockStreamsDao) GetStreamByKey

func (m *MockStreamsDao) GetStreamByKey(ctx context.Context, key string) (model.Stream, error)

GetStreamByKey mocks base method.

func (*MockStreamsDao) GetStreamByTumOnlineID

func (m *MockStreamsDao) GetStreamByTumOnlineID(ctx context.Context, id uint) (model.Stream, error)

GetStreamByTumOnlineID mocks base method.

func (*MockStreamsDao) GetStreamsByIds

func (m *MockStreamsDao) GetStreamsByIds(ids []uint) ([]model.Stream, error)

GetStreamsByIds mocks base method.

func (*MockStreamsDao) GetStreamsWithWatchState

func (m *MockStreamsDao) GetStreamsWithWatchState(courseID, userID uint) ([]model.Stream, error)

GetStreamsWithWatchState mocks base method.

func (*MockStreamsDao) GetTranscodingProgressByVersion

func (m *MockStreamsDao) GetTranscodingProgressByVersion(streamVersion model.StreamVersion, streamId uint) (model.TranscodingProgress, error)

GetTranscodingProgressByVersion mocks base method.

func (*MockStreamsDao) GetUnitByID

func (m *MockStreamsDao) GetUnitByID(id string) (model.StreamUnit, error)

GetUnitByID mocks base method.

func (*MockStreamsDao) GetWorkersForStream

func (m *MockStreamsDao) GetWorkersForStream(stream model.Stream) ([]model.Worker, error)

GetWorkersForStream mocks base method.

func (*MockStreamsDao) RemoveTranscodingProgress

func (m *MockStreamsDao) RemoveTranscodingProgress(streamVersion model.StreamVersion, streamId uint) error

RemoveTranscodingProgress mocks base method.

func (*MockStreamsDao) SaveCAMURL

func (m *MockStreamsDao) SaveCAMURL(stream *model.Stream, url string)

SaveCAMURL mocks base method.

func (*MockStreamsDao) SaveCOMBURL

func (m *MockStreamsDao) SaveCOMBURL(stream *model.Stream, url string)

SaveCOMBURL mocks base method.

func (*MockStreamsDao) SaveEndedState

func (m *MockStreamsDao) SaveEndedState(streamID uint, hasEnded bool) error

SaveEndedState mocks base method.

func (*MockStreamsDao) SavePRESURL

func (m *MockStreamsDao) SavePRESURL(stream *model.Stream, url string)

SavePRESURL mocks base method.

func (*MockStreamsDao) SaveStream

func (m *MockStreamsDao) SaveStream(vod *model.Stream) error

SaveStream mocks base method.

func (*MockStreamsDao) SaveTranscodingProgress

func (m *MockStreamsDao) SaveTranscodingProgress(progress model.TranscodingProgress) error

SaveTranscodingProgress mocks base method.

func (*MockStreamsDao) SaveWorkerForStream

func (m *MockStreamsDao) SaveWorkerForStream(stream model.Stream, worker model.Worker) error

SaveWorkerForStream mocks base method.

func (*MockStreamsDao) SetLectureHall

func (m *MockStreamsDao) SetLectureHall(streamIDs []uint, lectureHallID uint) error

SetLectureHall mocks base method.

func (*MockStreamsDao) SetStreamLiveNowTimestampById

func (m *MockStreamsDao) SetStreamLiveNowTimestampById(streamID uint, liveNowTimestamp time.Time) error

SetStreamLiveNowTimestampById mocks base method.

func (*MockStreamsDao) SetStreamNotLiveById

func (m *MockStreamsDao) SetStreamNotLiveById(streamID uint) error

SetStreamNotLiveById mocks base method.

func (*MockStreamsDao) ToggleVisibility

func (m *MockStreamsDao) ToggleVisibility(streamId uint, private bool) error

ToggleVisibility mocks base method.

func (*MockStreamsDao) UnsetLectureHall

func (m *MockStreamsDao) UnsetLectureHall(streamIDs []uint) error

UnsetLectureHall mocks base method.

func (*MockStreamsDao) UpdateLectureSeries

func (m *MockStreamsDao) UpdateLectureSeries(arg0 model.Stream) error

UpdateLectureSeries mocks base method.

func (*MockStreamsDao) UpdateSilences

func (m *MockStreamsDao) UpdateSilences(silences []model.Silence, streamID string) error

UpdateSilences mocks base method.

func (*MockStreamsDao) UpdateStream

func (m *MockStreamsDao) UpdateStream(stream model.Stream) error

UpdateStream mocks base method.

func (*MockStreamsDao) UpdateStreamFullAssoc

func (m *MockStreamsDao) UpdateStreamFullAssoc(vod *model.Stream) error

UpdateStreamFullAssoc mocks base method.

type MockStreamsDaoMockRecorder

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

MockStreamsDaoMockRecorder is the mock recorder for MockStreamsDao.

func (*MockStreamsDaoMockRecorder) AddVodView

func (mr *MockStreamsDaoMockRecorder) AddVodView(id interface{}) *gomock.Call

AddVodView indicates an expected call of AddVodView.

func (*MockStreamsDaoMockRecorder) ClearWorkersForStream

func (mr *MockStreamsDaoMockRecorder) ClearWorkersForStream(stream interface{}) *gomock.Call

ClearWorkersForStream indicates an expected call of ClearWorkersForStream.

func (*MockStreamsDaoMockRecorder) CreateStream

func (mr *MockStreamsDaoMockRecorder) CreateStream(stream interface{}) *gomock.Call

CreateStream indicates an expected call of CreateStream.

func (*MockStreamsDaoMockRecorder) DeleteLectureSeries

func (mr *MockStreamsDaoMockRecorder) DeleteLectureSeries(arg0 interface{}) *gomock.Call

DeleteLectureSeries indicates an expected call of DeleteLectureSeries.

func (*MockStreamsDaoMockRecorder) DeleteSilences

func (mr *MockStreamsDaoMockRecorder) DeleteSilences(streamID interface{}) *gomock.Call

DeleteSilences indicates an expected call of DeleteSilences.

func (*MockStreamsDaoMockRecorder) DeleteStream

func (mr *MockStreamsDaoMockRecorder) DeleteStream(streamID interface{}) *gomock.Call

DeleteStream indicates an expected call of DeleteStream.

func (*MockStreamsDaoMockRecorder) DeleteStreamsWithTumID

func (mr *MockStreamsDaoMockRecorder) DeleteStreamsWithTumID(ids interface{}) *gomock.Call

DeleteStreamsWithTumID indicates an expected call of DeleteStreamsWithTumID.

func (*MockStreamsDaoMockRecorder) DeleteUnit

func (mr *MockStreamsDaoMockRecorder) DeleteUnit(id interface{}) *gomock.Call

DeleteUnit indicates an expected call of DeleteUnit.

func (*MockStreamsDaoMockRecorder) ExecAllStreamsWithCoursesAndSubtitles

func (mr *MockStreamsDaoMockRecorder) ExecAllStreamsWithCoursesAndSubtitles(f interface{}) *gomock.Call

ExecAllStreamsWithCoursesAndSubtitles indicates an expected call of ExecAllStreamsWithCoursesAndSubtitles.

func (*MockStreamsDaoMockRecorder) GetAllStreams

func (mr *MockStreamsDaoMockRecorder) GetAllStreams() *gomock.Call

GetAllStreams indicates an expected call of GetAllStreams.

func (*MockStreamsDaoMockRecorder) GetCurrentLive

func (mr *MockStreamsDaoMockRecorder) GetCurrentLive(ctx interface{}) *gomock.Call

GetCurrentLive indicates an expected call of GetCurrentLive.

func (*MockStreamsDaoMockRecorder) GetCurrentLiveNonHidden

func (mr *MockStreamsDaoMockRecorder) GetCurrentLiveNonHidden(ctx interface{}) *gomock.Call

GetCurrentLiveNonHidden indicates an expected call of GetCurrentLiveNonHidden.

func (*MockStreamsDaoMockRecorder) GetDuePremieresForWorkers

func (mr *MockStreamsDaoMockRecorder) GetDuePremieresForWorkers() *gomock.Call

GetDuePremieresForWorkers indicates an expected call of GetDuePremieresForWorkers.

func (*MockStreamsDaoMockRecorder) GetDueStreamsForWorkers

func (mr *MockStreamsDaoMockRecorder) GetDueStreamsForWorkers() *gomock.Call

GetDueStreamsForWorkers indicates an expected call of GetDueStreamsForWorkers.

func (*MockStreamsDaoMockRecorder) GetLiveStreamsInLectureHall

func (mr *MockStreamsDaoMockRecorder) GetLiveStreamsInLectureHall(lectureHallId interface{}) *gomock.Call

GetLiveStreamsInLectureHall indicates an expected call of GetLiveStreamsInLectureHall.

func (*MockStreamsDaoMockRecorder) GetStreamByID

func (mr *MockStreamsDaoMockRecorder) GetStreamByID(ctx, id interface{}) *gomock.Call

GetStreamByID indicates an expected call of GetStreamByID.

func (*MockStreamsDaoMockRecorder) GetStreamByKey

func (mr *MockStreamsDaoMockRecorder) GetStreamByKey(ctx, key interface{}) *gomock.Call

GetStreamByKey indicates an expected call of GetStreamByKey.

func (*MockStreamsDaoMockRecorder) GetStreamByTumOnlineID

func (mr *MockStreamsDaoMockRecorder) GetStreamByTumOnlineID(ctx, id interface{}) *gomock.Call

GetStreamByTumOnlineID indicates an expected call of GetStreamByTumOnlineID.

func (*MockStreamsDaoMockRecorder) GetStreamsByIds

func (mr *MockStreamsDaoMockRecorder) GetStreamsByIds(ids interface{}) *gomock.Call

GetStreamsByIds indicates an expected call of GetStreamsByIds.

func (*MockStreamsDaoMockRecorder) GetStreamsWithWatchState

func (mr *MockStreamsDaoMockRecorder) GetStreamsWithWatchState(courseID, userID interface{}) *gomock.Call

GetStreamsWithWatchState indicates an expected call of GetStreamsWithWatchState.

func (*MockStreamsDaoMockRecorder) GetTranscodingProgressByVersion

func (mr *MockStreamsDaoMockRecorder) GetTranscodingProgressByVersion(streamVersion, streamId interface{}) *gomock.Call

GetTranscodingProgressByVersion indicates an expected call of GetTranscodingProgressByVersion.

func (*MockStreamsDaoMockRecorder) GetUnitByID

func (mr *MockStreamsDaoMockRecorder) GetUnitByID(id interface{}) *gomock.Call

GetUnitByID indicates an expected call of GetUnitByID.

func (*MockStreamsDaoMockRecorder) GetWorkersForStream

func (mr *MockStreamsDaoMockRecorder) GetWorkersForStream(stream interface{}) *gomock.Call

GetWorkersForStream indicates an expected call of GetWorkersForStream.

func (*MockStreamsDaoMockRecorder) RemoveTranscodingProgress

func (mr *MockStreamsDaoMockRecorder) RemoveTranscodingProgress(streamVersion, streamId interface{}) *gomock.Call

RemoveTranscodingProgress indicates an expected call of RemoveTranscodingProgress.

func (*MockStreamsDaoMockRecorder) SaveCAMURL

func (mr *MockStreamsDaoMockRecorder) SaveCAMURL(stream, url interface{}) *gomock.Call

SaveCAMURL indicates an expected call of SaveCAMURL.

func (*MockStreamsDaoMockRecorder) SaveCOMBURL

func (mr *MockStreamsDaoMockRecorder) SaveCOMBURL(stream, url interface{}) *gomock.Call

SaveCOMBURL indicates an expected call of SaveCOMBURL.

func (*MockStreamsDaoMockRecorder) SaveEndedState

func (mr *MockStreamsDaoMockRecorder) SaveEndedState(streamID, hasEnded interface{}) *gomock.Call

SaveEndedState indicates an expected call of SaveEndedState.

func (*MockStreamsDaoMockRecorder) SavePRESURL

func (mr *MockStreamsDaoMockRecorder) SavePRESURL(stream, url interface{}) *gomock.Call

SavePRESURL indicates an expected call of SavePRESURL.

func (*MockStreamsDaoMockRecorder) SaveStream

func (mr *MockStreamsDaoMockRecorder) SaveStream(vod interface{}) *gomock.Call

SaveStream indicates an expected call of SaveStream.

func (*MockStreamsDaoMockRecorder) SaveTranscodingProgress

func (mr *MockStreamsDaoMockRecorder) SaveTranscodingProgress(progress interface{}) *gomock.Call

SaveTranscodingProgress indicates an expected call of SaveTranscodingProgress.

func (*MockStreamsDaoMockRecorder) SaveWorkerForStream

func (mr *MockStreamsDaoMockRecorder) SaveWorkerForStream(stream, worker interface{}) *gomock.Call

SaveWorkerForStream indicates an expected call of SaveWorkerForStream.

func (*MockStreamsDaoMockRecorder) SetLectureHall

func (mr *MockStreamsDaoMockRecorder) SetLectureHall(streamIDs, lectureHallID interface{}) *gomock.Call

SetLectureHall indicates an expected call of SetLectureHall.

func (*MockStreamsDaoMockRecorder) SetStreamLiveNowTimestampById

func (mr *MockStreamsDaoMockRecorder) SetStreamLiveNowTimestampById(streamID, liveNowTimestamp interface{}) *gomock.Call

SetStreamLiveNowTimestampById indicates an expected call of SetStreamLiveNowTimestampById.

func (*MockStreamsDaoMockRecorder) SetStreamNotLiveById

func (mr *MockStreamsDaoMockRecorder) SetStreamNotLiveById(streamID interface{}) *gomock.Call

SetStreamNotLiveById indicates an expected call of SetStreamNotLiveById.

func (*MockStreamsDaoMockRecorder) ToggleVisibility

func (mr *MockStreamsDaoMockRecorder) ToggleVisibility(streamId, private interface{}) *gomock.Call

ToggleVisibility indicates an expected call of ToggleVisibility.

func (*MockStreamsDaoMockRecorder) UnsetLectureHall

func (mr *MockStreamsDaoMockRecorder) UnsetLectureHall(streamIDs interface{}) *gomock.Call

UnsetLectureHall indicates an expected call of UnsetLectureHall.

func (*MockStreamsDaoMockRecorder) UpdateLectureSeries

func (mr *MockStreamsDaoMockRecorder) UpdateLectureSeries(arg0 interface{}) *gomock.Call

UpdateLectureSeries indicates an expected call of UpdateLectureSeries.

func (*MockStreamsDaoMockRecorder) UpdateSilences

func (mr *MockStreamsDaoMockRecorder) UpdateSilences(silences, streamID interface{}) *gomock.Call

UpdateSilences indicates an expected call of UpdateSilences.

func (*MockStreamsDaoMockRecorder) UpdateStream

func (mr *MockStreamsDaoMockRecorder) UpdateStream(stream interface{}) *gomock.Call

UpdateStream indicates an expected call of UpdateStream.

func (*MockStreamsDaoMockRecorder) UpdateStreamFullAssoc

func (mr *MockStreamsDaoMockRecorder) UpdateStreamFullAssoc(vod interface{}) *gomock.Call

UpdateStreamFullAssoc indicates an expected call of UpdateStreamFullAssoc.

type MockSubtitlesDao

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

MockSubtitlesDao is a mock of SubtitlesDao interface.

func NewMockSubtitlesDao

func NewMockSubtitlesDao(ctrl *gomock.Controller) *MockSubtitlesDao

NewMockSubtitlesDao creates a new mock instance.

func (*MockSubtitlesDao) Create

Create mocks base method.

func (*MockSubtitlesDao) CreateOrUpsert

func (m *MockSubtitlesDao) CreateOrUpsert(arg0 context.Context, arg1 *model.Subtitles) error

CreateOrUpsert mocks base method.

func (*MockSubtitlesDao) Delete

func (m *MockSubtitlesDao) Delete(arg0 context.Context, arg1 uint) error

Delete mocks base method.

func (*MockSubtitlesDao) EXPECT

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

func (*MockSubtitlesDao) Get

func (m *MockSubtitlesDao) Get(arg0 context.Context, arg1 uint) (model.Subtitles, error)

Get mocks base method.

func (*MockSubtitlesDao) GetByStreamIDandLang

func (m *MockSubtitlesDao) GetByStreamIDandLang(arg0 context.Context, arg1 uint, arg2 string) (model.Subtitles, error)

GetByStreamIDandLang mocks base method.

type MockSubtitlesDaoMockRecorder

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

MockSubtitlesDaoMockRecorder is the mock recorder for MockSubtitlesDao.

func (*MockSubtitlesDaoMockRecorder) Create

func (mr *MockSubtitlesDaoMockRecorder) Create(c, it interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSubtitlesDaoMockRecorder) CreateOrUpsert

func (mr *MockSubtitlesDaoMockRecorder) CreateOrUpsert(arg0, arg1 interface{}) *gomock.Call

CreateOrUpsert indicates an expected call of CreateOrUpsert.

func (*MockSubtitlesDaoMockRecorder) Delete

func (mr *MockSubtitlesDaoMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSubtitlesDaoMockRecorder) Get

func (mr *MockSubtitlesDaoMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSubtitlesDaoMockRecorder) GetByStreamIDandLang

func (mr *MockSubtitlesDaoMockRecorder) GetByStreamIDandLang(arg0, arg1, arg2 interface{}) *gomock.Call

GetByStreamIDandLang indicates an expected call of GetByStreamIDandLang.

type MockTokenDao

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

MockTokenDao is a mock of TokenDao interface.

func NewMockTokenDao

func NewMockTokenDao(ctrl *gomock.Controller) *MockTokenDao

NewMockTokenDao creates a new mock instance.

func (*MockTokenDao) AddToken

func (m *MockTokenDao) AddToken(token model.Token) error

AddToken mocks base method.

func (*MockTokenDao) DeleteToken

func (m *MockTokenDao) DeleteToken(id string) error

DeleteToken mocks base method.

func (*MockTokenDao) EXPECT

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

func (*MockTokenDao) GetAllTokens

func (m *MockTokenDao) GetAllTokens() ([]dao.AllTokensDto, error)

GetAllTokens mocks base method.

func (*MockTokenDao) GetToken

func (m *MockTokenDao) GetToken(token string) (model.Token, error)

GetToken mocks base method.

func (*MockTokenDao) TokenUsed

func (m *MockTokenDao) TokenUsed(token model.Token) error

TokenUsed mocks base method.

type MockTokenDaoMockRecorder

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

MockTokenDaoMockRecorder is the mock recorder for MockTokenDao.

func (*MockTokenDaoMockRecorder) AddToken

func (mr *MockTokenDaoMockRecorder) AddToken(token interface{}) *gomock.Call

AddToken indicates an expected call of AddToken.

func (*MockTokenDaoMockRecorder) DeleteToken

func (mr *MockTokenDaoMockRecorder) DeleteToken(id interface{}) *gomock.Call

DeleteToken indicates an expected call of DeleteToken.

func (*MockTokenDaoMockRecorder) GetAllTokens

func (mr *MockTokenDaoMockRecorder) GetAllTokens() *gomock.Call

GetAllTokens indicates an expected call of GetAllTokens.

func (*MockTokenDaoMockRecorder) GetToken

func (mr *MockTokenDaoMockRecorder) GetToken(token interface{}) *gomock.Call

GetToken indicates an expected call of GetToken.

func (*MockTokenDaoMockRecorder) TokenUsed

func (mr *MockTokenDaoMockRecorder) TokenUsed(token interface{}) *gomock.Call

TokenUsed indicates an expected call of TokenUsed.

type MockTranscodingFailureDao

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

MockTranscodingFailureDao is a mock of TranscodingFailureDao interface.

func NewMockTranscodingFailureDao

func NewMockTranscodingFailureDao(ctrl *gomock.Controller) *MockTranscodingFailureDao

NewMockTranscodingFailureDao creates a new mock instance.

func (*MockTranscodingFailureDao) All

All mocks base method.

func (*MockTranscodingFailureDao) Delete

func (m *MockTranscodingFailureDao) Delete(id uint) error

Delete mocks base method.

func (*MockTranscodingFailureDao) EXPECT

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

func (*MockTranscodingFailureDao) New

New mocks base method.

type MockTranscodingFailureDaoMockRecorder

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

MockTranscodingFailureDaoMockRecorder is the mock recorder for MockTranscodingFailureDao.

func (*MockTranscodingFailureDaoMockRecorder) All

All indicates an expected call of All.

func (*MockTranscodingFailureDaoMockRecorder) Delete

func (mr *MockTranscodingFailureDaoMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTranscodingFailureDaoMockRecorder) New

func (mr *MockTranscodingFailureDaoMockRecorder) New(arg0 interface{}) *gomock.Call

New indicates an expected call of New.

type MockUploadKeyDao

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

MockUploadKeyDao is a mock of UploadKeyDao interface.

func NewMockUploadKeyDao

func NewMockUploadKeyDao(ctrl *gomock.Controller) *MockUploadKeyDao

NewMockUploadKeyDao creates a new mock instance.

func (*MockUploadKeyDao) CreateUploadKey

func (m *MockUploadKeyDao) CreateUploadKey(key string, stream uint, videoType model.VideoType) error

CreateUploadKey mocks base method.

func (*MockUploadKeyDao) DeleteUploadKey

func (m *MockUploadKeyDao) DeleteUploadKey(key model.UploadKey) error

DeleteUploadKey mocks base method.

func (*MockUploadKeyDao) EXPECT

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

func (*MockUploadKeyDao) GetUploadKey

func (m *MockUploadKeyDao) GetUploadKey(key string) (model.UploadKey, error)

GetUploadKey mocks base method.

type MockUploadKeyDaoMockRecorder

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

MockUploadKeyDaoMockRecorder is the mock recorder for MockUploadKeyDao.

func (*MockUploadKeyDaoMockRecorder) CreateUploadKey

func (mr *MockUploadKeyDaoMockRecorder) CreateUploadKey(key, stream, videoType interface{}) *gomock.Call

CreateUploadKey indicates an expected call of CreateUploadKey.

func (*MockUploadKeyDaoMockRecorder) DeleteUploadKey

func (mr *MockUploadKeyDaoMockRecorder) DeleteUploadKey(key interface{}) *gomock.Call

DeleteUploadKey indicates an expected call of DeleteUploadKey.

func (*MockUploadKeyDaoMockRecorder) GetUploadKey

func (mr *MockUploadKeyDaoMockRecorder) GetUploadKey(key interface{}) *gomock.Call

GetUploadKey indicates an expected call of GetUploadKey.

type MockUsersDao

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

MockUsersDao is a mock of UsersDao interface.

func NewMockUsersDao

func NewMockUsersDao(ctrl *gomock.Controller) *MockUsersDao

NewMockUsersDao creates a new mock instance.

func (*MockUsersDao) AddUserSetting

func (m *MockUsersDao) AddUserSetting(userSetting *model.UserSetting) error

AddUserSetting mocks base method.

func (*MockUsersDao) AddUsersToCourseByTUMIDs

func (m *MockUsersDao) AddUsersToCourseByTUMIDs(matrNr []string, courseID uint) error

AddUsersToCourseByTUMIDs mocks base method.

func (*MockUsersDao) AreUsersEmpty

func (m *MockUsersDao) AreUsersEmpty(ctx context.Context) (bool, error)

AreUsersEmpty mocks base method.

func (m *MockUsersDao) CreateRegisterLink(ctx context.Context, user model.User) (model.RegisterLink, error)

CreateRegisterLink mocks base method.

func (*MockUsersDao) CreateUser

func (m *MockUsersDao) CreateUser(ctx context.Context, user *model.User) error

CreateUser mocks base method.

func (*MockUsersDao) DeleteResetKey

func (m *MockUsersDao) DeleteResetKey(key string)

DeleteResetKey mocks base method.

func (*MockUsersDao) DeleteUser

func (m *MockUsersDao) DeleteUser(ctx context.Context, uid uint) error

DeleteUser mocks base method.

func (*MockUsersDao) EXPECT

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

func (*MockUsersDao) GetAllAdminsAndLecturers

func (m *MockUsersDao) GetAllAdminsAndLecturers(users *[]model.User) error

GetAllAdminsAndLecturers mocks base method.

func (*MockUsersDao) GetUserByEmail

func (m *MockUsersDao) GetUserByEmail(ctx context.Context, email string) (model.User, error)

GetUserByEmail mocks base method.

func (*MockUsersDao) GetUserByID

func (m *MockUsersDao) GetUserByID(ctx context.Context, id uint) (model.User, error)

GetUserByID mocks base method.

func (*MockUsersDao) GetUserByResetKey

func (m *MockUsersDao) GetUserByResetKey(key string) (model.User, error)

GetUserByResetKey mocks base method.

func (*MockUsersDao) HasPinnedCourse

func (m *MockUsersDao) HasPinnedCourse(arg0 model.User, arg1 uint) (bool, error)

HasPinnedCourse mocks base method.

func (*MockUsersDao) IsUserAdmin

func (m *MockUsersDao) IsUserAdmin(ctx context.Context, uid uint) (bool, error)

IsUserAdmin mocks base method.

func (*MockUsersDao) PinCourse

func (m *MockUsersDao) PinCourse(user model.User, course model.Course, pin bool) error

PinCourse mocks base method.

func (*MockUsersDao) SearchUser

func (m *MockUsersDao) SearchUser(query string) ([]model.User, error)

SearchUser mocks base method.

func (*MockUsersDao) UpdateUser

func (m *MockUsersDao) UpdateUser(user model.User) error

UpdateUser mocks base method.

func (*MockUsersDao) UpsertUser

func (m *MockUsersDao) UpsertUser(user *model.User) error

UpsertUser mocks base method.

type MockUsersDaoMockRecorder

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

MockUsersDaoMockRecorder is the mock recorder for MockUsersDao.

func (*MockUsersDaoMockRecorder) AddUserSetting

func (mr *MockUsersDaoMockRecorder) AddUserSetting(userSetting interface{}) *gomock.Call

AddUserSetting indicates an expected call of AddUserSetting.

func (*MockUsersDaoMockRecorder) AddUsersToCourseByTUMIDs

func (mr *MockUsersDaoMockRecorder) AddUsersToCourseByTUMIDs(matrNr, courseID interface{}) *gomock.Call

AddUsersToCourseByTUMIDs indicates an expected call of AddUsersToCourseByTUMIDs.

func (*MockUsersDaoMockRecorder) AreUsersEmpty

func (mr *MockUsersDaoMockRecorder) AreUsersEmpty(ctx interface{}) *gomock.Call

AreUsersEmpty indicates an expected call of AreUsersEmpty.

func (mr *MockUsersDaoMockRecorder) CreateRegisterLink(ctx, user interface{}) *gomock.Call

CreateRegisterLink indicates an expected call of CreateRegisterLink.

func (*MockUsersDaoMockRecorder) CreateUser

func (mr *MockUsersDaoMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUsersDaoMockRecorder) DeleteResetKey

func (mr *MockUsersDaoMockRecorder) DeleteResetKey(key interface{}) *gomock.Call

DeleteResetKey indicates an expected call of DeleteResetKey.

func (*MockUsersDaoMockRecorder) DeleteUser

func (mr *MockUsersDaoMockRecorder) DeleteUser(ctx, uid interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockUsersDaoMockRecorder) GetAllAdminsAndLecturers

func (mr *MockUsersDaoMockRecorder) GetAllAdminsAndLecturers(users interface{}) *gomock.Call

GetAllAdminsAndLecturers indicates an expected call of GetAllAdminsAndLecturers.

func (*MockUsersDaoMockRecorder) GetUserByEmail

func (mr *MockUsersDaoMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockUsersDaoMockRecorder) GetUserByID

func (mr *MockUsersDaoMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockUsersDaoMockRecorder) GetUserByResetKey

func (mr *MockUsersDaoMockRecorder) GetUserByResetKey(key interface{}) *gomock.Call

GetUserByResetKey indicates an expected call of GetUserByResetKey.

func (*MockUsersDaoMockRecorder) HasPinnedCourse

func (mr *MockUsersDaoMockRecorder) HasPinnedCourse(arg0, arg1 interface{}) *gomock.Call

HasPinnedCourse indicates an expected call of HasPinnedCourse.

func (*MockUsersDaoMockRecorder) IsUserAdmin

func (mr *MockUsersDaoMockRecorder) IsUserAdmin(ctx, uid interface{}) *gomock.Call

IsUserAdmin indicates an expected call of IsUserAdmin.

func (*MockUsersDaoMockRecorder) PinCourse

func (mr *MockUsersDaoMockRecorder) PinCourse(user, course, pin interface{}) *gomock.Call

PinCourse indicates an expected call of PinCourse.

func (*MockUsersDaoMockRecorder) SearchUser

func (mr *MockUsersDaoMockRecorder) SearchUser(query interface{}) *gomock.Call

SearchUser indicates an expected call of SearchUser.

func (*MockUsersDaoMockRecorder) UpdateUser

func (mr *MockUsersDaoMockRecorder) UpdateUser(user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

func (*MockUsersDaoMockRecorder) UpsertUser

func (mr *MockUsersDaoMockRecorder) UpsertUser(user interface{}) *gomock.Call

UpsertUser indicates an expected call of UpsertUser.

type MockVideoSectionDao

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

MockVideoSectionDao is a mock of VideoSectionDao interface.

func NewMockVideoSectionDao

func NewMockVideoSectionDao(ctrl *gomock.Controller) *MockVideoSectionDao

NewMockVideoSectionDao creates a new mock instance.

func (*MockVideoSectionDao) Create

func (m *MockVideoSectionDao) Create(arg0 []model.VideoSection) error

Create mocks base method.

func (*MockVideoSectionDao) Delete

func (m *MockVideoSectionDao) Delete(arg0 uint) error

Delete mocks base method.

func (*MockVideoSectionDao) EXPECT

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

func (*MockVideoSectionDao) Get

Get mocks base method.

func (*MockVideoSectionDao) GetByStreamId

func (m *MockVideoSectionDao) GetByStreamId(arg0 uint) ([]model.VideoSection, error)

GetByStreamId mocks base method.

func (*MockVideoSectionDao) Update

func (m *MockVideoSectionDao) Update(arg0 *model.VideoSection) error

Update mocks base method.

type MockVideoSectionDaoMockRecorder

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

MockVideoSectionDaoMockRecorder is the mock recorder for MockVideoSectionDao.

func (*MockVideoSectionDaoMockRecorder) Create

func (mr *MockVideoSectionDaoMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockVideoSectionDaoMockRecorder) Delete

func (mr *MockVideoSectionDaoMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVideoSectionDaoMockRecorder) Get

func (mr *MockVideoSectionDaoMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockVideoSectionDaoMockRecorder) GetByStreamId

func (mr *MockVideoSectionDaoMockRecorder) GetByStreamId(arg0 interface{}) *gomock.Call

GetByStreamId indicates an expected call of GetByStreamId.

func (*MockVideoSectionDaoMockRecorder) Update

func (mr *MockVideoSectionDaoMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockVideoSeekDao

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

MockVideoSeekDao is a mock of VideoSeekDao interface.

func NewMockVideoSeekDao

func NewMockVideoSeekDao(ctrl *gomock.Controller) *MockVideoSeekDao

NewMockVideoSeekDao creates a new mock instance.

func (*MockVideoSeekDao) Add

func (m *MockVideoSeekDao) Add(streamID string, pos float64) error

Add mocks base method.

func (*MockVideoSeekDao) EXPECT

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

func (*MockVideoSeekDao) Get

func (m *MockVideoSeekDao) Get(streamID string) ([]model.VideoSeekChunk, error)

Get mocks base method.

type MockVideoSeekDaoMockRecorder

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

MockVideoSeekDaoMockRecorder is the mock recorder for MockVideoSeekDao.

func (*MockVideoSeekDaoMockRecorder) Add

func (mr *MockVideoSeekDaoMockRecorder) Add(streamID, pos interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockVideoSeekDaoMockRecorder) Get

func (mr *MockVideoSeekDaoMockRecorder) Get(streamID interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockWorkerDao

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

MockWorkerDao is a mock of WorkerDao interface.

func NewMockWorkerDao

func NewMockWorkerDao(ctrl *gomock.Controller) *MockWorkerDao

NewMockWorkerDao creates a new mock instance.

func (*MockWorkerDao) CreateWorker

func (m *MockWorkerDao) CreateWorker(worker *model.Worker) error

CreateWorker mocks base method.

func (*MockWorkerDao) DeleteWorker

func (m *MockWorkerDao) DeleteWorker(workerID string) error

DeleteWorker mocks base method.

func (*MockWorkerDao) EXPECT

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

func (*MockWorkerDao) GetAliveWorkers

func (m *MockWorkerDao) GetAliveWorkers() []model.Worker

GetAliveWorkers mocks base method.

func (*MockWorkerDao) GetAllWorkers

func (m *MockWorkerDao) GetAllWorkers() ([]model.Worker, error)

GetAllWorkers mocks base method.

func (*MockWorkerDao) GetWorkerByHostname

func (m *MockWorkerDao) GetWorkerByHostname(ctx context.Context, hostname string) (model.Worker, error)

GetWorkerByHostname mocks base method.

func (*MockWorkerDao) GetWorkerByID

func (m *MockWorkerDao) GetWorkerByID(ctx context.Context, workerID string) (model.Worker, error)

GetWorkerByID mocks base method.

func (*MockWorkerDao) SaveWorker

func (m *MockWorkerDao) SaveWorker(worker model.Worker) error

SaveWorker mocks base method.

type MockWorkerDaoMockRecorder

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

MockWorkerDaoMockRecorder is the mock recorder for MockWorkerDao.

func (*MockWorkerDaoMockRecorder) CreateWorker

func (mr *MockWorkerDaoMockRecorder) CreateWorker(worker interface{}) *gomock.Call

CreateWorker indicates an expected call of CreateWorker.

func (*MockWorkerDaoMockRecorder) DeleteWorker

func (mr *MockWorkerDaoMockRecorder) DeleteWorker(workerID interface{}) *gomock.Call

DeleteWorker indicates an expected call of DeleteWorker.

func (*MockWorkerDaoMockRecorder) GetAliveWorkers

func (mr *MockWorkerDaoMockRecorder) GetAliveWorkers() *gomock.Call

GetAliveWorkers indicates an expected call of GetAliveWorkers.

func (*MockWorkerDaoMockRecorder) GetAllWorkers

func (mr *MockWorkerDaoMockRecorder) GetAllWorkers() *gomock.Call

GetAllWorkers indicates an expected call of GetAllWorkers.

func (*MockWorkerDaoMockRecorder) GetWorkerByHostname

func (mr *MockWorkerDaoMockRecorder) GetWorkerByHostname(ctx, hostname interface{}) *gomock.Call

GetWorkerByHostname indicates an expected call of GetWorkerByHostname.

func (*MockWorkerDaoMockRecorder) GetWorkerByID

func (mr *MockWorkerDaoMockRecorder) GetWorkerByID(ctx, workerID interface{}) *gomock.Call

GetWorkerByID indicates an expected call of GetWorkerByID.

func (*MockWorkerDaoMockRecorder) SaveWorker

func (mr *MockWorkerDaoMockRecorder) SaveWorker(worker interface{}) *gomock.Call

SaveWorker indicates an expected call of SaveWorker.

Jump to

Keyboard shortcuts

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