pet_adoption

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pet_adoption is a generated GoMock package.

Index

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

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

Jump to

Keyboard shortcuts

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