Documentation ¶
Overview ¶
Package pet_adoption is a generated GoMock package.
Index ¶
- type MockPetAdoptionRepository
- func (m *MockPetAdoptionRepository) AddPetAdoption(petID, userID string) error
- func (m *MockPetAdoptionRepository) EXPECT() *MockPetAdoptionRepositoryMockRecorder
- func (m *MockPetAdoptionRepository) GetPetOwner(petID string) (string, error)
- func (m *MockPetAdoptionRepository) ListPetsAdoptedByUser(userID string) ([]string, error)
- func (m *MockPetAdoptionRepository) RemovePetAdoption(petID, userID string) error
- type MockPetAdoptionRepositoryMockRecorder
- func (mr *MockPetAdoptionRepositoryMockRecorder) AddPetAdoption(petID, userID interface{}) *gomock.Call
- func (mr *MockPetAdoptionRepositoryMockRecorder) GetPetOwner(petID interface{}) *gomock.Call
- func (mr *MockPetAdoptionRepositoryMockRecorder) ListPetsAdoptedByUser(userID interface{}) *gomock.Call
- func (mr *MockPetAdoptionRepositoryMockRecorder) RemovePetAdoption(petID, userID interface{}) *gomock.Call
- type NoSQLPetAdoptionRepository
- func (pa *NoSQLPetAdoptionRepository) AddPetAdoption(petID, userID string) error
- func (pa *NoSQLPetAdoptionRepository) GetPetOwner(petID string) (string, error)
- func (pa *NoSQLPetAdoptionRepository) ListPetsAdoptedByUser(userID string) ([]string, error)
- func (pa *NoSQLPetAdoptionRepository) RemovePetAdoption(petID, userID string) error
- type SQLPetAdoptionRepository
- func (pa *SQLPetAdoptionRepository) AddPetAdoption(petID, userID string) error
- func (pa *SQLPetAdoptionRepository) GetPetOwner(petID string) (string, error)
- func (pa *SQLPetAdoptionRepository) ListPetsAdoptedByUser(userID string) ([]string, error)
- func (pa *SQLPetAdoptionRepository) RemovePetAdoption(petID, userID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPetAdoptionRepository ¶
type MockPetAdoptionRepository struct {
// contains filtered or unexported fields
}
MockPetAdoptionRepository is a mock of PetAdoptionRepository interface.
func NewMockPetAdoptionRepository ¶
func NewMockPetAdoptionRepository(ctrl *gomock.Controller) *MockPetAdoptionRepository
NewMockPetAdoptionRepository creates a new mock instance.
func (*MockPetAdoptionRepository) AddPetAdoption ¶
func (m *MockPetAdoptionRepository) AddPetAdoption(petID, userID string) error
AddPetAdoption mocks base method.
func (*MockPetAdoptionRepository) EXPECT ¶
func (m *MockPetAdoptionRepository) EXPECT() *MockPetAdoptionRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPetAdoptionRepository) GetPetOwner ¶
func (m *MockPetAdoptionRepository) GetPetOwner(petID string) (string, error)
GetPetOwner mocks base method.
func (*MockPetAdoptionRepository) ListPetsAdoptedByUser ¶
func (m *MockPetAdoptionRepository) ListPetsAdoptedByUser(userID string) ([]string, error)
ListPetsAdoptedByUser mocks base method.
func (*MockPetAdoptionRepository) RemovePetAdoption ¶
func (m *MockPetAdoptionRepository) RemovePetAdoption(petID, userID string) error
RemovePetAdoption mocks base method.
type MockPetAdoptionRepositoryMockRecorder ¶
type MockPetAdoptionRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPetAdoptionRepositoryMockRecorder is the mock recorder for MockPetAdoptionRepository.
func (*MockPetAdoptionRepositoryMockRecorder) AddPetAdoption ¶
func (mr *MockPetAdoptionRepositoryMockRecorder) AddPetAdoption(petID, userID interface{}) *gomock.Call
AddPetAdoption indicates an expected call of AddPetAdoption.
func (*MockPetAdoptionRepositoryMockRecorder) GetPetOwner ¶
func (mr *MockPetAdoptionRepositoryMockRecorder) GetPetOwner(petID interface{}) *gomock.Call
GetPetOwner indicates an expected call of GetPetOwner.
func (*MockPetAdoptionRepositoryMockRecorder) ListPetsAdoptedByUser ¶
func (mr *MockPetAdoptionRepositoryMockRecorder) ListPetsAdoptedByUser(userID interface{}) *gomock.Call
ListPetsAdoptedByUser indicates an expected call of ListPetsAdoptedByUser.
func (*MockPetAdoptionRepositoryMockRecorder) RemovePetAdoption ¶
func (mr *MockPetAdoptionRepositoryMockRecorder) RemovePetAdoption(petID, userID interface{}) *gomock.Call
RemovePetAdoption indicates an expected call of RemovePetAdoption.
type NoSQLPetAdoptionRepository ¶
type NoSQLPetAdoptionRepository struct {
// contains filtered or unexported fields
}
func NewNoSQLPetAdoptionRepository ¶
func NewNoSQLPetAdoptionRepository(db nosql.Database, logger logr.Logger) *NoSQLPetAdoptionRepository
func (*NoSQLPetAdoptionRepository) AddPetAdoption ¶
func (pa *NoSQLPetAdoptionRepository) AddPetAdoption(petID, userID string) error
func (*NoSQLPetAdoptionRepository) GetPetOwner ¶
func (pa *NoSQLPetAdoptionRepository) GetPetOwner(petID string) (string, error)
func (*NoSQLPetAdoptionRepository) ListPetsAdoptedByUser ¶
func (pa *NoSQLPetAdoptionRepository) ListPetsAdoptedByUser(userID string) ([]string, error)
func (*NoSQLPetAdoptionRepository) RemovePetAdoption ¶
func (pa *NoSQLPetAdoptionRepository) RemovePetAdoption(petID, userID string) error
type SQLPetAdoptionRepository ¶
type SQLPetAdoptionRepository struct {
// contains filtered or unexported fields
}
func NewSQLPetAdoptionRepository ¶
func NewSQLPetAdoptionRepository(db isql.Database, logger logr.Logger) *SQLPetAdoptionRepository
func (*SQLPetAdoptionRepository) AddPetAdoption ¶
func (pa *SQLPetAdoptionRepository) AddPetAdoption(petID, userID string) error
func (*SQLPetAdoptionRepository) GetPetOwner ¶
func (pa *SQLPetAdoptionRepository) GetPetOwner(petID string) (string, error)
func (*SQLPetAdoptionRepository) ListPetsAdoptedByUser ¶
func (pa *SQLPetAdoptionRepository) ListPetsAdoptedByUser(userID string) ([]string, error)
func (*SQLPetAdoptionRepository) RemovePetAdoption ¶
func (pa *SQLPetAdoptionRepository) RemovePetAdoption(petID, userID string) error