Documentation ¶
Overview ¶
Package rpc is a generated GoMock package.
Package rpc is a generated GoMock package.
Package rpc is a generated GoMock package.
Package rpc is a generated GoMock package.
Package rpc is a generated GoMock package.
Index ¶
- type Article
- type Auth
- type Health
- type MockArticle
- func (m *MockArticle) AddToUser(arg0 context.Context, arg1 article.ID, arg2 user.ID) error
- func (m *MockArticle) Delete(arg0 context.Context, arg1 article.ID) error
- func (m *MockArticle) EXPECT() *MockArticleMockRecorder
- func (m *MockArticle) List(arg0 context.Context, arg1 value.Index, arg2 value.Size, arg3 ...value.Filter) ([]model.Article, error)
- func (m *MockArticle) ListByUser(arg0 context.Context, arg1 user.ID, arg2 value.Index, arg3 value.Size, ...) ([]model.Article, error)
- func (m *MockArticle) RemoveFromUser(arg0 context.Context, arg1 article.ID, arg2 user.ID) error
- func (m *MockArticle) Share(arg0 context.Context, arg1 article.URL, arg2 article.Title, ...) (model.Article, error)
- type MockArticleMockRecorder
- func (mr *MockArticleMockRecorder) AddToUser(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) List(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) ListByUser(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) RemoveFromUser(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) Share(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- type MockAuth
- func (m *MockAuth) ChangePassword(arg0 context.Context, arg1 user.ID, arg2 auth.Password) error
- func (m *MockAuth) EXPECT() *MockAuthMockRecorder
- func (m *MockAuth) GetEmail(arg0 context.Context, arg1 user.ID) (auth.Email, error)
- func (m *MockAuth) SignIn(arg0 context.Context, arg1 auth.Email, arg2 auth.Password) (model.User, error)
- func (m *MockAuth) SignUp(arg0 context.Context, arg1 user.ID, arg2 auth.Email, arg3 auth.Password) error
- type MockAuthMockRecorder
- func (mr *MockAuthMockRecorder) ChangePassword(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) GetEmail(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) SignIn(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) SignUp(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockHealth
- type MockHealthMockRecorder
- type MockNotice
- type MockNoticeMockRecorder
- type MockUser
- type MockUserMockRecorder
- type Notice
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article interface { List(context.Context, value.Index, value.Size, ...value.Filter) ([]model.Article, error) ListByUser(context.Context, user.ID, value.Index, value.Size, ...value.Filter) ([]model.Article, error) Delete(context.Context, article.ID) error AddToUser(context.Context, article.ID, user.ID) error RemoveFromUser(context.Context, article.ID, user.ID) error }
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) EXPECT ¶
func (m *MockArticle) EXPECT() *MockArticleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
RemoveFromUser 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) 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) Share ¶
func (mr *MockArticleMockRecorder) Share(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Share indicates an expected call of Share.
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) ChangePassword ¶
ChangePassword mocks base method.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) ChangePassword ¶
func (mr *MockAuthMockRecorder) ChangePassword(arg0, arg1, arg2 interface{}) *gomock.Call
ChangePassword indicates an expected call of ChangePassword.
func (*MockAuthMockRecorder) GetEmail ¶
func (mr *MockAuthMockRecorder) GetEmail(arg0, arg1 interface{}) *gomock.Call
GetEmail indicates an expected call of GetEmail.
func (*MockAuthMockRecorder) SignIn ¶
func (mr *MockAuthMockRecorder) SignIn(arg0, arg1, arg2 interface{}) *gomock.Call
SignIn indicates an expected call of SignIn.
func (*MockAuthMockRecorder) SignUp ¶
func (mr *MockAuthMockRecorder) SignUp(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SignUp indicates an expected call of SignUp.
type MockHealth ¶
type MockHealth struct {
// contains filtered or unexported fields
}
MockHealth is a mock of Health interface.
func NewMockHealth ¶
func NewMockHealth(ctrl *gomock.Controller) *MockHealth
NewMockHealth creates a new mock instance.
func (*MockHealth) Check ¶
func (m *MockHealth) Check(arg0 context.Context) error
Check mocks base method.
func (*MockHealth) EXPECT ¶
func (m *MockHealth) EXPECT() *MockHealthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHealthMockRecorder ¶
type MockHealthMockRecorder struct {
// contains filtered or unexported fields
}
MockHealthMockRecorder is the mock recorder for MockHealth.
func (*MockHealthMockRecorder) Check ¶
func (mr *MockHealthMockRecorder) Check(arg0 interface{}) *gomock.Call
Check indicates an expected call of Check.
type MockNotice ¶
type MockNotice struct {
// contains filtered or unexported fields
}
MockNotice is a mock of Notice interface.
func NewMockNotice ¶
func NewMockNotice(ctrl *gomock.Controller) *MockNotice
NewMockNotice creates a new mock instance.
func (*MockNotice) EXPECT ¶
func (m *MockNotice) EXPECT() *MockNoticeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNoticeMockRecorder ¶
type MockNoticeMockRecorder struct {
// contains filtered or unexported fields
}
MockNoticeMockRecorder is the mock recorder for MockNotice.
func (*MockNoticeMockRecorder) Notify ¶
func (mr *MockNoticeMockRecorder) Notify(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Notify indicates an expected call of Notify.
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.
type MockUserMockRecorder ¶
type MockUserMockRecorder struct {
// contains filtered or unexported fields
}
MockUserMockRecorder is the mock recorder for MockUser.
func (*MockUserMockRecorder) Create ¶
func (mr *MockUserMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserMockRecorder) Update ¶
func (mr *MockUserMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.