mockdb

package
v0.0.0-...-749b111 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mockdb is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) AcceptContact

func (m *MockStore) AcceptContact(arg0 context.Context, arg1 int64) (db.Contact, error)

AcceptContact mocks base method.

func (*MockStore) ChangeUserPassword

func (m *MockStore) ChangeUserPassword(arg0 context.Context, arg1 db.ChangeUserPasswordParams) (db.User, error)

ChangeUserPassword mocks base method.

func (*MockStore) CheckExistingContact

func (m *MockStore) CheckExistingContact(arg0 context.Context, arg1 db.CheckExistingContactParams) ([]db.Contact, error)

CheckExistingContact mocks base method.

func (*MockStore) CreateChat

func (m *MockStore) CreateChat(arg0 context.Context, arg1 db.CreateChatParams) (db.Chat, error)

CreateChat mocks base method.

func (*MockStore) CreateContact

func (m *MockStore) CreateContact(arg0 context.Context, arg1 db.CreateContactParams) (db.Contact, error)

CreateContact mocks base method.

func (*MockStore) CreateMessage

func (m *MockStore) CreateMessage(arg0 context.Context, arg1 db.CreateMessageParams) (db.Message, error)

CreateMessage mocks base method.

func (*MockStore) CreateUser

func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (db.User, error)

CreateUser mocks base method.

func (*MockStore) DeleteChat

func (m *MockStore) DeleteChat(arg0 context.Context, arg1 int64) error

DeleteChat mocks base method.

func (*MockStore) DeleteContact

func (m *MockStore) DeleteContact(arg0 context.Context, arg1 int64) error

DeleteContact mocks base method.

func (*MockStore) DeleteMessage

func (m *MockStore) DeleteMessage(arg0 context.Context, arg1 int64) error

DeleteMessage mocks base method.

func (*MockStore) DeleteUser

func (m *MockStore) DeleteUser(arg0 context.Context, arg1 int64) error

DeleteUser mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) GetChat

func (m *MockStore) GetChat(arg0 context.Context, arg1 int64) (db.Chat, error)

GetChat mocks base method.

func (*MockStore) GetChatByUserIDs

func (m *MockStore) GetChatByUserIDs(arg0 context.Context, arg1 db.GetChatByUserIDsParams) (db.Chat, error)

GetChatByUserIDs mocks base method.

func (*MockStore) GetContact

func (m *MockStore) GetContact(arg0 context.Context, arg1 int64) (db.Contact, error)

GetContact mocks base method.

func (*MockStore) GetMessage

func (m *MockStore) GetMessage(arg0 context.Context, arg1 int64) (db.Message, error)

GetMessage mocks base method.

func (*MockStore) GetUser

func (m *MockStore) GetUser(arg0 context.Context, arg1 int64) (db.User, error)

GetUser mocks base method.

func (*MockStore) GetUserByUsername

func (m *MockStore) GetUserByUsername(arg0 context.Context, arg1 string) (db.User, error)

GetUserByUsername mocks base method.

func (*MockStore) ListAcceptedContacts

func (m *MockStore) ListAcceptedContacts(arg0 context.Context, arg1 db.ListAcceptedContactsParams) ([]db.Contact, error)

ListAcceptedContacts mocks base method.

func (*MockStore) ListChats

func (m *MockStore) ListChats(arg0 context.Context, arg1 db.ListChatsParams) ([]db.Chat, error)

ListChats mocks base method.

func (*MockStore) ListContacts

func (m *MockStore) ListContacts(arg0 context.Context, arg1 db.ListContactsParams) ([]db.Contact, error)

ListContacts mocks base method.

func (*MockStore) ListMessages

func (m *MockStore) ListMessages(arg0 context.Context, arg1 db.ListMessagesParams) ([]db.Message, error)

ListMessages mocks base method.

func (*MockStore) ListPendingContacts

func (m *MockStore) ListPendingContacts(arg0 context.Context, arg1 db.ListPendingContactsParams) ([]db.Contact, error)

ListPendingContacts mocks base method.

func (*MockStore) ListRejectedContacts

func (m *MockStore) ListRejectedContacts(arg0 context.Context, arg1 db.ListRejectedContactsParams) ([]db.Contact, error)

ListRejectedContacts mocks base method.

func (*MockStore) ListUsers

func (m *MockStore) ListUsers(arg0 context.Context, arg1 db.ListUsersParams) ([]db.ListUsersRow, error)

ListUsers mocks base method.

func (*MockStore) RejectContact

func (m *MockStore) RejectContact(arg0 context.Context, arg1 int64) (db.Contact, error)

RejectContact mocks base method.

func (*MockStore) UpdateChat

func (m *MockStore) UpdateChat(arg0 context.Context, arg1 int64) (db.Chat, error)

UpdateChat mocks base method.

func (*MockStore) UpdateUser

func (m *MockStore) UpdateUser(arg0 context.Context, arg1 db.UpdateUserParams) (db.User, error)

UpdateUser mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AcceptContact

func (mr *MockStoreMockRecorder) AcceptContact(arg0, arg1 interface{}) *gomock.Call

AcceptContact indicates an expected call of AcceptContact.

func (*MockStoreMockRecorder) ChangeUserPassword

func (mr *MockStoreMockRecorder) ChangeUserPassword(arg0, arg1 interface{}) *gomock.Call

ChangeUserPassword indicates an expected call of ChangeUserPassword.

func (*MockStoreMockRecorder) CheckExistingContact

func (mr *MockStoreMockRecorder) CheckExistingContact(arg0, arg1 interface{}) *gomock.Call

CheckExistingContact indicates an expected call of CheckExistingContact.

func (*MockStoreMockRecorder) CreateChat

func (mr *MockStoreMockRecorder) CreateChat(arg0, arg1 interface{}) *gomock.Call

CreateChat indicates an expected call of CreateChat.

func (*MockStoreMockRecorder) CreateContact

func (mr *MockStoreMockRecorder) CreateContact(arg0, arg1 interface{}) *gomock.Call

CreateContact indicates an expected call of CreateContact.

func (*MockStoreMockRecorder) CreateMessage

func (mr *MockStoreMockRecorder) CreateMessage(arg0, arg1 interface{}) *gomock.Call

CreateMessage indicates an expected call of CreateMessage.

func (*MockStoreMockRecorder) CreateUser

func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockStoreMockRecorder) DeleteChat

func (mr *MockStoreMockRecorder) DeleteChat(arg0, arg1 interface{}) *gomock.Call

DeleteChat indicates an expected call of DeleteChat.

func (*MockStoreMockRecorder) DeleteContact

func (mr *MockStoreMockRecorder) DeleteContact(arg0, arg1 interface{}) *gomock.Call

DeleteContact indicates an expected call of DeleteContact.

func (*MockStoreMockRecorder) DeleteMessage

func (mr *MockStoreMockRecorder) DeleteMessage(arg0, arg1 interface{}) *gomock.Call

DeleteMessage indicates an expected call of DeleteMessage.

func (*MockStoreMockRecorder) DeleteUser

func (mr *MockStoreMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockStoreMockRecorder) GetChat

func (mr *MockStoreMockRecorder) GetChat(arg0, arg1 interface{}) *gomock.Call

GetChat indicates an expected call of GetChat.

func (*MockStoreMockRecorder) GetChatByUserIDs

func (mr *MockStoreMockRecorder) GetChatByUserIDs(arg0, arg1 interface{}) *gomock.Call

GetChatByUserIDs indicates an expected call of GetChatByUserIDs.

func (*MockStoreMockRecorder) GetContact

func (mr *MockStoreMockRecorder) GetContact(arg0, arg1 interface{}) *gomock.Call

GetContact indicates an expected call of GetContact.

func (*MockStoreMockRecorder) GetMessage

func (mr *MockStoreMockRecorder) GetMessage(arg0, arg1 interface{}) *gomock.Call

GetMessage indicates an expected call of GetMessage.

func (*MockStoreMockRecorder) GetUser

func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockStoreMockRecorder) GetUserByUsername

func (mr *MockStoreMockRecorder) GetUserByUsername(arg0, arg1 interface{}) *gomock.Call

GetUserByUsername indicates an expected call of GetUserByUsername.

func (*MockStoreMockRecorder) ListAcceptedContacts

func (mr *MockStoreMockRecorder) ListAcceptedContacts(arg0, arg1 interface{}) *gomock.Call

ListAcceptedContacts indicates an expected call of ListAcceptedContacts.

func (*MockStoreMockRecorder) ListChats

func (mr *MockStoreMockRecorder) ListChats(arg0, arg1 interface{}) *gomock.Call

ListChats indicates an expected call of ListChats.

func (*MockStoreMockRecorder) ListContacts

func (mr *MockStoreMockRecorder) ListContacts(arg0, arg1 interface{}) *gomock.Call

ListContacts indicates an expected call of ListContacts.

func (*MockStoreMockRecorder) ListMessages

func (mr *MockStoreMockRecorder) ListMessages(arg0, arg1 interface{}) *gomock.Call

ListMessages indicates an expected call of ListMessages.

func (*MockStoreMockRecorder) ListPendingContacts

func (mr *MockStoreMockRecorder) ListPendingContacts(arg0, arg1 interface{}) *gomock.Call

ListPendingContacts indicates an expected call of ListPendingContacts.

func (*MockStoreMockRecorder) ListRejectedContacts

func (mr *MockStoreMockRecorder) ListRejectedContacts(arg0, arg1 interface{}) *gomock.Call

ListRejectedContacts indicates an expected call of ListRejectedContacts.

func (*MockStoreMockRecorder) ListUsers

func (mr *MockStoreMockRecorder) ListUsers(arg0, arg1 interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockStoreMockRecorder) RejectContact

func (mr *MockStoreMockRecorder) RejectContact(arg0, arg1 interface{}) *gomock.Call

RejectContact indicates an expected call of RejectContact.

func (*MockStoreMockRecorder) UpdateChat

func (mr *MockStoreMockRecorder) UpdateChat(arg0, arg1 interface{}) *gomock.Call

UpdateChat indicates an expected call of UpdateChat.

func (*MockStoreMockRecorder) UpdateUser

func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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