repository

package
v0.0.0-...-6f95374 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package repository is a generated GoMock package.

Package repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockArticle

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

MockArticle is a mock of Article interface.

func NewMockArticle

func NewMockArticle(ctrl *gomock.Controller) *MockArticle

NewMockArticle creates a new mock instance.

func (*MockArticle) AddToUser

func (m *MockArticle) AddToUser(arg0 context.Context, arg1 article.ID, arg2 user.ID) error

AddToUser mocks base method.

func (*MockArticle) Delete

func (m *MockArticle) Delete(arg0 context.Context, arg1 article.ID) error

Delete mocks base method.

func (*MockArticle) EXPECT

func (m *MockArticle) EXPECT() *MockArticleMockRecorder

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

func (*MockArticle) ExistsByUser

func (m *MockArticle) ExistsByUser(arg0 context.Context, arg1 article.ID, arg2 user.ID) (bool, error)

ExistsByUser mocks base method.

func (*MockArticle) Find

func (m *MockArticle) Find(arg0 context.Context, arg1 article.ID) (model.Article, error)

Find mocks base method.

func (*MockArticle) List

func (m *MockArticle) List(arg0 context.Context, arg1 value.Index, arg2 value.Size, arg3 ...value.Filter) ([]model.Article, error)

List mocks base method.

func (*MockArticle) ListByUser

func (m *MockArticle) ListByUser(arg0 context.Context, arg1 user.ID, arg2 value.Index, arg3 value.Size, arg4 ...value.Filter) ([]model.Article, error)

ListByUser mocks base method.

func (*MockArticle) RemoveFromUser

func (m *MockArticle) RemoveFromUser(arg0 context.Context, arg1 article.ID, arg2 user.ID) error

RemoveFromUser mocks base method.

func (*MockArticle) Save

func (m *MockArticle) Save(arg0 context.Context, arg1 model.Article) error

Save mocks base method.

type MockArticleMockRecorder

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

MockArticleMockRecorder is the mock recorder for MockArticle.

func (*MockArticleMockRecorder) AddToUser

func (mr *MockArticleMockRecorder) AddToUser(arg0, arg1, arg2 interface{}) *gomock.Call

AddToUser indicates an expected call of AddToUser.

func (*MockArticleMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockArticleMockRecorder) ExistsByUser

func (mr *MockArticleMockRecorder) ExistsByUser(arg0, arg1, arg2 interface{}) *gomock.Call

ExistsByUser indicates an expected call of ExistsByUser.

func (*MockArticleMockRecorder) Find

func (mr *MockArticleMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockArticleMockRecorder) List

func (mr *MockArticleMockRecorder) List(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockArticleMockRecorder) ListByUser

func (mr *MockArticleMockRecorder) ListByUser(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

ListByUser indicates an expected call of ListByUser.

func (*MockArticleMockRecorder) RemoveFromUser

func (mr *MockArticleMockRecorder) RemoveFromUser(arg0, arg1, arg2 interface{}) *gomock.Call

RemoveFromUser indicates an expected call of RemoveFromUser.

func (*MockArticleMockRecorder) Save

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

Save indicates an expected call of Save.

type MockUser

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

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) Find

func (m *MockUser) Find(arg0 context.Context, arg1 user.ID) (model.User, error)

Find mocks base method.

func (*MockUser) Save

func (m *MockUser) Save(arg0 context.Context, arg1 model.User) error

Save mocks base method.

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) Find

func (mr *MockUserMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockUserMockRecorder) Save

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

Save indicates an expected call of Save.

type User

type User interface {
	Save(context.Context, model.User) error
	Find(context.Context, user.ID) (model.User, error)
}

Jump to

Keyboard shortcuts

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