usecases

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomDong

type RandomDong struct {
	// contains filtered or unexported fields
}

func NewRandomDongUseCase added in v0.4.0

func NewRandomDongUseCase(repo dong.Repository) *RandomDong

func (RandomDong) Handle

func (r RandomDong) Handle(req RandomDongReq) RandomDongResp

type RandomDongReq

type RandomDongReq struct {
	Category string
}

type RandomDongResp

type RandomDongResp struct {
	Emoji string
	Error error
}

type Scrape

type Scrape struct {
	// contains filtered or unexported fields
}

func NewScrapeDongsUseCase added in v0.4.0

func NewScrapeDongsUseCase(
	fetcher dong.Fetcher,
	repository dong.Repository) *Scrape

func (Scrape) Handle

func (s Scrape) Handle() ScrapeResp

type ScrapeResp

type ScrapeResp struct {
	Message string
	Error   error
}

Jump to

Keyboard shortcuts

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