add scraping the torrent topics rss files

This commit is contained in:
2024-09-09 08:54:29 +03:00
parent 20c4f25c55
commit e587e645fc
26 changed files with 714 additions and 22 deletions

28
pkg/handler/handler.go Normal file
View File

@@ -0,0 +1,28 @@
package handler
import (
"git.amok.space/yevhen/resource-scraper/pkg/service"
)
type Handler struct {
services *service.Service
}
func New(services *service.Service) *Handler {
return &Handler{services: services}
}
func (h *Handler) InitConsole() string {
return h.rutracker()
}
//func (h *Handler) Base(services *service.Service) *Handler {
// return &Handler{services: services}
//}
//func (h *Handler) InitApi() *chi.Mux {
// api := chi.NewRouter()
// api.Get("/", web.ApiFallbackHandler)
//
// return api
//}