func NewInteractors(
	r *Repositories,
) *Interactors {
	return &Interactors{
		Contest: usecases.NewContestInteractor(r.Contest, infra.NewValidator()),
		Ranking: usecases.NewRankingInteractor(r.Ranking, r.Contest, r.ContestLog, infra.NewValidator()),
	}
}
NewInteractors initializes all repositories
package app
import (
	"github.com/tadoku/tadoku/services/reading-contest-api/infra"
	"github.com/tadoku/tadoku/services/reading-contest-api/usecases"
)
type Interactors struct {
	Contest usecases.ContestInteractor
	Ranking usecases.RankingInteractor
}