usecase

package
v0.0.0-...-ad4e74a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelInteractor

type ChannelInteractor interface {
	BatchUpdate(
		ctx context.Context,
		param *input.BatchUpdateChannels,
	) (model.Channels, error)
}

ChannelInteractor is ...

func NewChannelInteractor

func NewChannelInteractor(
	transactable repository.Transactable,
	creatorRepository repository.Creator,
	channelRepository repository.Channel,
	youtubeClient youtube.YoutubeClient,
) ChannelInteractor

NewChannelInteractor creates a new ChannelInteractor

type CreatorInteractor

type CreatorInteractor interface {
	List(
		ctx context.Context,
		param *input.ListCreators,
	) (*output.ListCreators, error)
}

CreatorInteractor is ...

func NewCreatorInteractor

func NewCreatorInteractor(
	creatorRepository repository.Creator,
) CreatorInteractor

NewCreatorInteractor is ...

type VideoInteractor

type VideoInteractor interface {
	UpdatePlatformVideos(
		ctx context.Context,
		param *input.UpdatePlatformVideos,
	) (int, error)
	UpdatwExistVideos(
		ctx context.Context,
		param *input.UpdateExistVideos,
	) (int, error)
}

VideoInteractor is ...

func NewVideoInteractor

func NewVideoInteractor(
	transactable repository.Transactable,
	creatorRepository repository.Creator,
	channelRepository repository.Channel,
	videoRepository repository.Video,
	youtubeClient youtube.YoutubeClient,
	twitchClient twitch.TwitchClient,
	twitcastingClient twitcasting.TwitcastingClient,
) VideoInteractor

NewVideoInteractor creates a new VideoInteractor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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