usecase

package
v0.0.0-...-23502e9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommentUsecase

func NewCommentUsecase(commentRepo domain.CommentRepository, contextTimeout time.Duration) domain.CommentUsecase

func NewFileUsecase

func NewFileUsecase(repo domain.FileRepository, contextTimeout time.Duration, localStaticUrl string, urlStaticUrl string) domain.FileUsecase

func NewLoginUsecase

func NewLoginUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.LoginUsecase

func NewPostUsecase

func NewPostUsecase(repo domain.PostRepository, timeout time.Duration, producer event.Producer, postRankUsecase *PostRankUsecase) domain.PostUsecase

func NewRefreshTokenUsecase

func NewRefreshTokenUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.RefreshTokenUsecase

func NewRelationUsecase

func NewRelationUsecase(repo domain.RelationRepository, userRepo domain.UserRepository, contextTimeout time.Duration) domain.RelationUsecase

func NewSignupUsecase

func NewSignupUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.SignupUsecase

func NewTagUsecase

func NewTagUsecase(repo domain.TagRepository, contextTimeout time.Duration) domain.TagUsecase

func NewTaskUsecase

func NewTaskUsecase(taskRepository domain.TaskRepository, timeout time.Duration) domain.TaskUsecase

func NewUserUsecase

func NewUserUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.UserUsecase

Types

type PostRankUsecase

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

func NewPostRankUsecase

func NewPostRankUsecase(
	interactionRepository domain.InteractionRepository,
	postRepository domain.PostRepository,
	rankRepository domain.RankRepository,
	contextTimeout time.Duration,
) *PostRankUsecase

func (*PostRankUsecase) GetTopN

func (ru *PostRankUsecase) GetTopN(c context.Context) ([]domain.Post, error)

func (*PostRankUsecase) TopN

func (ru *PostRankUsecase) TopN(c context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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