Documentation ¶
Overview ¶
Package mock_ports is a generated GoMock package.
Index ¶
- type MockLoginRepository
- func (m *MockLoginRepository) EXPECT() *MockLoginRepositoryMockRecorder
- func (m *MockLoginRepository) FindByID(ctx context.Context, loginID string) (*porker.Login, error)
- func (m *MockLoginRepository) Logout(ctx context.Context, loginID string) error
- func (m *MockLoginRepository) NewLogin(ctx context.Context, loginID string) (*porker.Login, error)
- func (m *MockLoginRepository) ReLogin(ctx context.Context, login *porker.Login) error
- type MockLoginRepositoryMockRecorder
- func (mr *MockLoginRepositoryMockRecorder) FindByID(ctx, loginID interface{}) *gomock.Call
- func (mr *MockLoginRepositoryMockRecorder) Logout(ctx, loginID interface{}) *gomock.Call
- func (mr *MockLoginRepositoryMockRecorder) NewLogin(ctx, loginID interface{}) *gomock.Call
- func (mr *MockLoginRepositoryMockRecorder) ReLogin(ctx, login interface{}) *gomock.Call
- type MockPokerRepository
- func (m *MockPokerRepository) Create(ctx context.Context, loginID string) (room.ID, error)
- func (m *MockPokerRepository) Delete(ctx context.Context, roomID room.ID) error
- func (m *MockPokerRepository) EXPECT() *MockPokerRepositoryMockRecorder
- func (m *MockPokerRepository) Enter(ctx context.Context, roomID room.ID, loginID string) error
- func (m *MockPokerRepository) IsExistsInRoom(ctx context.Context, roomID room.ID, loginID string) (bool, error)
- func (m *MockPokerRepository) Leave(ctx context.Context, roomID room.ID, loginID string) error
- func (m *MockPokerRepository) ListMembers(ctx context.Context, roomID room.ID) ([]string, error)
- func (m *MockPokerRepository) ReadStream(ctx context.Context, roomID room.ID, messageID string) (string, *porker.PokerSituation, error)
- func (m *MockPokerRepository) ReadStreamLatest(ctx context.Context, roomID room.ID) (string, *porker.PokerSituation, error)
- func (m *MockPokerRepository) Update(ctx context.Context, ps *porker.PokerSituation) error
- type MockPokerRepositoryMockRecorder
- func (mr *MockPokerRepositoryMockRecorder) Create(ctx, loginID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) Delete(ctx, roomID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) Enter(ctx, roomID, loginID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) IsExistsInRoom(ctx, roomID, loginID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) Leave(ctx, roomID, loginID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) ListMembers(ctx, roomID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) ReadStream(ctx, roomID, messageID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) ReadStreamLatest(ctx, roomID interface{}) *gomock.Call
- func (mr *MockPokerRepositoryMockRecorder) Update(ctx, ps interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLoginRepository ¶
type MockLoginRepository struct {
// contains filtered or unexported fields
}
MockLoginRepository is a mock of LoginRepository interface.
func NewMockLoginRepository ¶
func NewMockLoginRepository(ctrl *gomock.Controller) *MockLoginRepository
NewMockLoginRepository creates a new mock instance.
func (*MockLoginRepository) EXPECT ¶
func (m *MockLoginRepository) EXPECT() *MockLoginRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLoginRepository) Logout ¶
func (m *MockLoginRepository) Logout(ctx context.Context, loginID string) error
Logout mocks base method.
type MockLoginRepositoryMockRecorder ¶
type MockLoginRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockLoginRepositoryMockRecorder is the mock recorder for MockLoginRepository.
func (*MockLoginRepositoryMockRecorder) FindByID ¶
func (mr *MockLoginRepositoryMockRecorder) FindByID(ctx, loginID interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockLoginRepositoryMockRecorder) Logout ¶
func (mr *MockLoginRepositoryMockRecorder) Logout(ctx, loginID interface{}) *gomock.Call
Logout indicates an expected call of Logout.
func (*MockLoginRepositoryMockRecorder) NewLogin ¶
func (mr *MockLoginRepositoryMockRecorder) NewLogin(ctx, loginID interface{}) *gomock.Call
NewLogin indicates an expected call of NewLogin.
func (*MockLoginRepositoryMockRecorder) ReLogin ¶
func (mr *MockLoginRepositoryMockRecorder) ReLogin(ctx, login interface{}) *gomock.Call
ReLogin indicates an expected call of ReLogin.
type MockPokerRepository ¶
type MockPokerRepository struct {
// contains filtered or unexported fields
}
MockPokerRepository is a mock of PokerRepository interface.
func NewMockPokerRepository ¶
func NewMockPokerRepository(ctrl *gomock.Controller) *MockPokerRepository
NewMockPokerRepository creates a new mock instance.
func (*MockPokerRepository) EXPECT ¶
func (m *MockPokerRepository) EXPECT() *MockPokerRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPokerRepository) IsExistsInRoom ¶
func (m *MockPokerRepository) IsExistsInRoom(ctx context.Context, roomID room.ID, loginID string) (bool, error)
IsExistsInRoom mocks base method.
func (*MockPokerRepository) ListMembers ¶
ListMembers mocks base method.
func (*MockPokerRepository) ReadStream ¶
func (m *MockPokerRepository) ReadStream(ctx context.Context, roomID room.ID, messageID string) (string, *porker.PokerSituation, error)
ReadStream mocks base method.
func (*MockPokerRepository) ReadStreamLatest ¶
func (m *MockPokerRepository) ReadStreamLatest(ctx context.Context, roomID room.ID) (string, *porker.PokerSituation, error)
ReadStreamLatest mocks base method.
func (*MockPokerRepository) Update ¶
func (m *MockPokerRepository) Update(ctx context.Context, ps *porker.PokerSituation) error
Update mocks base method.
type MockPokerRepositoryMockRecorder ¶
type MockPokerRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPokerRepositoryMockRecorder is the mock recorder for MockPokerRepository.
func (*MockPokerRepositoryMockRecorder) Create ¶
func (mr *MockPokerRepositoryMockRecorder) Create(ctx, loginID interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPokerRepositoryMockRecorder) Delete ¶
func (mr *MockPokerRepositoryMockRecorder) Delete(ctx, roomID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPokerRepositoryMockRecorder) Enter ¶
func (mr *MockPokerRepositoryMockRecorder) Enter(ctx, roomID, loginID interface{}) *gomock.Call
Enter indicates an expected call of Enter.
func (*MockPokerRepositoryMockRecorder) IsExistsInRoom ¶
func (mr *MockPokerRepositoryMockRecorder) IsExistsInRoom(ctx, roomID, loginID interface{}) *gomock.Call
IsExistsInRoom indicates an expected call of IsExistsInRoom.
func (*MockPokerRepositoryMockRecorder) Leave ¶
func (mr *MockPokerRepositoryMockRecorder) Leave(ctx, roomID, loginID interface{}) *gomock.Call
Leave indicates an expected call of Leave.
func (*MockPokerRepositoryMockRecorder) ListMembers ¶
func (mr *MockPokerRepositoryMockRecorder) ListMembers(ctx, roomID interface{}) *gomock.Call
ListMembers indicates an expected call of ListMembers.
func (*MockPokerRepositoryMockRecorder) ReadStream ¶
func (mr *MockPokerRepositoryMockRecorder) ReadStream(ctx, roomID, messageID interface{}) *gomock.Call
ReadStream indicates an expected call of ReadStream.
func (*MockPokerRepositoryMockRecorder) ReadStreamLatest ¶
func (mr *MockPokerRepositoryMockRecorder) ReadStreamLatest(ctx, roomID interface{}) *gomock.Call
ReadStreamLatest indicates an expected call of ReadStreamLatest.
func (*MockPokerRepositoryMockRecorder) Update ¶
func (mr *MockPokerRepositoryMockRecorder) Update(ctx, ps interface{}) *gomock.Call
Update indicates an expected call of Update.