usecases

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupImages

type CleanupImages struct {
	PNGRepository gateways.PNGRepository
}

func (*CleanupImages) Do

func (usecase *CleanupImages) Do(ctx context.Context) error

type GetImage

type GetImage struct {
	PNGRepository gateways.PNGRepository
}

func (*GetImage) Do

func (u *GetImage) Do(ctx context.Context, id domain.ImageID) (*domain.Image, error)

type GetWeather

type GetWeather struct {
	UserRepository         gateways.UserRepository
	SubscriptionRepository gateways.SubscriptionRepository
	WeatherService         gateways.WeatherService
}

func (*GetWeather) Do

func (u *GetWeather) Do(ctx context.Context, userID domain.UserID, subscriptionID domain.SubscriptionID) (*domain.Weather, error)

type PollWeathers

type PollWeathers struct {
	UserRepository         gateways.UserRepository
	SubscriptionRepository gateways.SubscriptionRepository
	WeatherService         gateways.WeatherService
	PNGRepository          gateways.PNGRepository
	NotificationService    gateways.NotificationService
}

func (*PollWeathers) Do

func (u *PollWeathers) Do(ctx context.Context, urlProviders usecases.URLProviders) error

type Setup

type Setup struct {
	UserRepository         gateways.UserRepository
	SubscriptionRepository gateways.SubscriptionRepository
}

func (*Setup) Do

func (u *Setup) Do(ctx context.Context) (*domain.User, error)

Directories

Path Synopsis
mock_usecases
Package mock_usecases is a generated GoMock package.
Package mock_usecases is a generated GoMock package.

Jump to

Keyboard shortcuts

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