rpc

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: 9 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	SignUp(context.Context, user.ID, auth.Email, auth.Password) error
	SignIn(context.Context, auth.Email, auth.Password) (model.User, error)
	ChangePassword(context.Context, user.ID, auth.Password) error
	GetEmail(context.Context, user.ID) (auth.Email, error)
}

type Health

type Health interface {
	Check(context.Context) 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) 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) 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) Share

Share 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

func (m *MockAuth) ChangePassword(arg0 context.Context, arg1 user.ID, arg2 auth.Password) error

ChangePassword mocks base method.

func (*MockAuth) EXPECT

func (m *MockAuth) EXPECT() *MockAuthMockRecorder

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

func (*MockAuth) GetEmail

func (m *MockAuth) GetEmail(arg0 context.Context, arg1 user.ID) (auth.Email, error)

GetEmail mocks base method.

func (*MockAuth) SignIn

func (m *MockAuth) SignIn(arg0 context.Context, arg1 auth.Email, arg2 auth.Password) (model.User, error)

SignIn mocks base method.

func (*MockAuth) SignUp

func (m *MockAuth) SignUp(arg0 context.Context, arg1 user.ID, arg2 auth.Email, arg3 auth.Password) error

SignUp mocks base method.

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.

func (*MockNotice) Notify

func (m *MockNotice) Notify(arg0 context.Context, arg1 auth.Email, arg2 notice.Subject, arg3 notice.Message) (notice.ID, error)

Notify mocks base method.

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) Create

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

Create mocks base method.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) Update

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

Update mocks base method.

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.

type Notice

type Notice interface {
	Notify(context.Context, auth.Email, notice.Subject, notice.Message) (notice.ID, error)
}

type User

type User interface {
	Create(context.Context) (model.User, error)
	Update(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