service

package
v0.0.0-...-7bb11d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWeatherService

type MockWeatherService struct {
	mock.Mock
}

MockWeatherService is an autogenerated mock type for the WeatherService type

func NewMockWeatherService

func NewMockWeatherService(t mockConstructorTestingTNewMockWeatherService) *MockWeatherService

NewMockWeatherService creates a new instance of MockWeatherService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockWeatherService) CreateWeather

func (_m *MockWeatherService) CreateWeather(ctx context.Context, url *types.Api) (*types.StoreData, error)

CreateWeather provides a mock function with given fields: ctx, url

func (*MockWeatherService) GetWeatherByCity

func (_m *MockWeatherService) GetWeatherByCity(ctx context.Context, city string) (types.StoreData, error)

GetWeatherByCity provides a mock function with given fields: ctx, city

type WeatherService

type WeatherService interface {
	CreateWeather(ctx context.Context, url *types.Api) (*types.StoreData, error)
	GetWeatherByCity(ctx context.Context, city string) (types.StoreData, error)
}

func NewWeatherService

func NewWeatherService(weatherRepository repository.WeatherRepository, timeout time.Duration) WeatherService

Jump to

Keyboard shortcuts

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