Documentation ¶
Overview ¶
Package mock_gateways is a generated GoMock package.
Index ¶
- type MockNotificationService
- type MockNotificationServiceMockRecorder
- type MockPNGRepository
- func (m *MockPNGRepository) EXPECT() *MockPNGRepositoryMockRecorder
- func (m *MockPNGRepository) FindById(arg0 context.Context, arg1 domain.ImageID) (*domain.Image, error)
- func (m *MockPNGRepository) RemoveOlderThan(arg0 context.Context, arg1 time.Time) (int, error)
- func (m *MockPNGRepository) Save(arg0 context.Context, arg1 domain.Image) error
- type MockPNGRepositoryMockRecorder
- type MockSubscriptionRepository
- func (m *MockSubscriptionRepository) EXPECT() *MockSubscriptionRepositoryMockRecorder
- func (m *MockSubscriptionRepository) FindBySubscriptionID(arg0 context.Context, arg1 domain.UserID, arg2 domain.SubscriptionID) (*domain.Subscription, error)
- func (m *MockSubscriptionRepository) FindByUserID(arg0 context.Context, arg1 domain.UserID) ([]domain.Subscription, error)
- func (m *MockSubscriptionRepository) Save(arg0 context.Context, arg1 domain.UserID, arg2 []domain.Subscription) error
- type MockSubscriptionRepositoryMockRecorder
- func (mr *MockSubscriptionRepositoryMockRecorder) FindBySubscriptionID(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSubscriptionRepositoryMockRecorder) FindByUserID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSubscriptionRepositoryMockRecorder) Save(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockUserRepository
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) FindAll(arg0 context.Context) ([]domain.User, error)
- func (m *MockUserRepository) FindById(arg0 context.Context, arg1 domain.UserID) (*domain.User, error)
- func (m *MockUserRepository) Save(arg0 context.Context, arg1 domain.User) error
- type MockUserRepositoryMockRecorder
- type MockWeatherService
- type MockWeatherServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNotificationService ¶
type MockNotificationService struct {
// contains filtered or unexported fields
}
MockNotificationService is a mock of NotificationService interface
func NewMockNotificationService ¶
func NewMockNotificationService(ctrl *gomock.Controller) *MockNotificationService
NewMockNotificationService creates a new mock instance
func (*MockNotificationService) EXPECT ¶
func (m *MockNotificationService) EXPECT() *MockNotificationServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNotificationService) SendForecastMessage ¶
func (m *MockNotificationService) SendForecastMessage(arg0 context.Context, arg1 domain.Recipient, arg2 interfaces.ForecastMessage) error
SendForecastMessage mocks base method
type MockNotificationServiceMockRecorder ¶
type MockNotificationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockNotificationServiceMockRecorder is the mock recorder for MockNotificationService
func (*MockNotificationServiceMockRecorder) SendForecastMessage ¶
func (mr *MockNotificationServiceMockRecorder) SendForecastMessage(arg0, arg1, arg2 interface{}) *gomock.Call
SendForecastMessage indicates an expected call of SendForecastMessage
type MockPNGRepository ¶
type MockPNGRepository struct {
// contains filtered or unexported fields
}
MockPNGRepository is a mock of PNGRepository interface
func NewMockPNGRepository ¶
func NewMockPNGRepository(ctrl *gomock.Controller) *MockPNGRepository
NewMockPNGRepository creates a new mock instance
func (*MockPNGRepository) EXPECT ¶
func (m *MockPNGRepository) EXPECT() *MockPNGRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPNGRepository) FindById ¶
func (m *MockPNGRepository) FindById(arg0 context.Context, arg1 domain.ImageID) (*domain.Image, error)
FindById mocks base method
func (*MockPNGRepository) RemoveOlderThan ¶
RemoveOlderThan mocks base method
type MockPNGRepositoryMockRecorder ¶
type MockPNGRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPNGRepositoryMockRecorder is the mock recorder for MockPNGRepository
func (*MockPNGRepositoryMockRecorder) FindById ¶
func (mr *MockPNGRepositoryMockRecorder) FindById(arg0, arg1 interface{}) *gomock.Call
FindById indicates an expected call of FindById
func (*MockPNGRepositoryMockRecorder) RemoveOlderThan ¶
func (mr *MockPNGRepositoryMockRecorder) RemoveOlderThan(arg0, arg1 interface{}) *gomock.Call
RemoveOlderThan indicates an expected call of RemoveOlderThan
func (*MockPNGRepositoryMockRecorder) Save ¶
func (mr *MockPNGRepositoryMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
Save indicates an expected call of Save
type MockSubscriptionRepository ¶
type MockSubscriptionRepository struct {
// contains filtered or unexported fields
}
MockSubscriptionRepository is a mock of SubscriptionRepository interface
func NewMockSubscriptionRepository ¶
func NewMockSubscriptionRepository(ctrl *gomock.Controller) *MockSubscriptionRepository
NewMockSubscriptionRepository creates a new mock instance
func (*MockSubscriptionRepository) EXPECT ¶
func (m *MockSubscriptionRepository) EXPECT() *MockSubscriptionRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSubscriptionRepository) FindBySubscriptionID ¶
func (m *MockSubscriptionRepository) FindBySubscriptionID(arg0 context.Context, arg1 domain.UserID, arg2 domain.SubscriptionID) (*domain.Subscription, error)
FindBySubscriptionID mocks base method
func (*MockSubscriptionRepository) FindByUserID ¶
func (m *MockSubscriptionRepository) FindByUserID(arg0 context.Context, arg1 domain.UserID) ([]domain.Subscription, error)
FindByUserID mocks base method
func (*MockSubscriptionRepository) Save ¶
func (m *MockSubscriptionRepository) Save(arg0 context.Context, arg1 domain.UserID, arg2 []domain.Subscription) error
Save mocks base method
type MockSubscriptionRepositoryMockRecorder ¶
type MockSubscriptionRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriptionRepositoryMockRecorder is the mock recorder for MockSubscriptionRepository
func (*MockSubscriptionRepositoryMockRecorder) FindBySubscriptionID ¶
func (mr *MockSubscriptionRepositoryMockRecorder) FindBySubscriptionID(arg0, arg1, arg2 interface{}) *gomock.Call
FindBySubscriptionID indicates an expected call of FindBySubscriptionID
func (*MockSubscriptionRepositoryMockRecorder) FindByUserID ¶
func (mr *MockSubscriptionRepositoryMockRecorder) FindByUserID(arg0, arg1 interface{}) *gomock.Call
FindByUserID indicates an expected call of FindByUserID
func (*MockSubscriptionRepositoryMockRecorder) Save ¶
func (mr *MockSubscriptionRepositoryMockRecorder) Save(arg0, arg1, arg2 interface{}) *gomock.Call
Save indicates an expected call of Save
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository
func (*MockUserRepositoryMockRecorder) FindAll ¶
func (mr *MockUserRepositoryMockRecorder) FindAll(arg0 interface{}) *gomock.Call
FindAll indicates an expected call of FindAll
func (*MockUserRepositoryMockRecorder) FindById ¶
func (mr *MockUserRepositoryMockRecorder) FindById(arg0, arg1 interface{}) *gomock.Call
FindById indicates an expected call of FindById
func (*MockUserRepositoryMockRecorder) Save ¶
func (mr *MockUserRepositoryMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
Save indicates an expected call of Save
type MockWeatherService ¶
type MockWeatherService struct {
// contains filtered or unexported fields
}
MockWeatherService is a mock of WeatherService interface
func NewMockWeatherService ¶
func NewMockWeatherService(ctrl *gomock.Controller) *MockWeatherService
NewMockWeatherService creates a new mock instance
func (*MockWeatherService) EXPECT ¶
func (m *MockWeatherService) EXPECT() *MockWeatherServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockWeatherService) Get ¶
func (m *MockWeatherService) Get(arg0 context.Context, arg1 domain.YahooClientID, arg2 []domain.Location, arg3 interfaces.ObservationOption) ([]domain.Weather, error)
Get mocks base method
type MockWeatherServiceMockRecorder ¶
type MockWeatherServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockWeatherServiceMockRecorder is the mock recorder for MockWeatherService
func (*MockWeatherServiceMockRecorder) Get ¶
func (mr *MockWeatherServiceMockRecorder) Get(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Get indicates an expected call of Get