├── .dockerignore ├── .env.example ├── .gitignore ├── README.md ├── app ├── controller │ ├── handler │ │ ├── auth │ │ │ └── auth.go │ │ ├── chat │ │ │ └── chat.go │ │ ├── comment │ │ │ └── comment.go │ │ ├── forum │ │ │ └── forum.go │ │ ├── message │ │ │ ├── box.go │ │ │ └── message.go │ │ ├── notice │ │ │ └── notice.go │ │ ├── post │ │ │ └── post.go │ │ ├── subject │ │ │ └── subject.go │ │ ├── subtitle │ │ │ └── subtitle.go │ │ ├── topic │ │ │ └── topic.go │ │ ├── torrent │ │ │ └── torrent.go │ │ ├── tracker │ │ │ └── tracker.go │ │ └── user │ │ │ └── user.go │ ├── middleware │ │ └── cors.go │ ├── request │ │ ├── auth │ │ │ ├── login.go │ │ │ ├── register.go │ │ │ ├── reset.go │ │ │ └── send_code.go │ │ ├── chat │ │ │ ├── create_chat.go │ │ │ └── update_chat.go │ │ ├── comment │ │ │ ├── create_comment.go │ │ │ └── update_comment.go │ │ ├── forum │ │ │ ├── create_forum.go │ │ │ └── update_forum.go │ │ ├── notice │ │ │ ├── create_notice.go │ │ │ └── update_notice.go │ │ ├── post │ │ │ ├── create_post.go │ │ │ └── update_post.go │ │ ├── request.go │ │ ├── subtitle │ │ │ ├── create_subtitle.go │ │ │ └── update_subtitle.go │ │ ├── topic │ │ │ ├── create_topic.go │ │ │ └── update_topic.go │ │ ├── torrent │ │ │ ├── create_torrent.go │ │ │ ├── preupload_torrent.go │ │ │ └── update_torrent.go │ │ └── tracker │ │ │ ├── announce.go │ │ │ └── scrape.go │ └── response │ │ ├── auth │ │ └── mine.go │ │ ├── chat │ │ ├── chat.go │ │ └── chat_list.go │ │ ├── comment │ │ ├── comment.go │ │ └── comment_list.go │ │ ├── forum │ │ ├── forum.go │ │ └── forum_list.go │ │ ├── notice │ │ ├── notice.go │ │ └── notice_list.go │ │ ├── post │ │ ├── post.go │ │ └── post_list.go │ │ ├── response.go │ │ ├── subtitle │ │ ├── subtitle.go │ │ └── subtitle_list.go │ │ ├── topic │ │ ├── topic.go │ │ └── topic_list.go │ │ ├── torrent │ │ └── torrent.go │ │ └── tracker │ │ ├── announce.go │ │ └── scrape.go ├── domain │ ├── model │ │ ├── boil_queries.go │ │ ├── boil_table_names.go │ │ ├── boil_types.go │ │ ├── mysql_upsert.go │ │ ├── peers.go │ │ ├── snatchers.go │ │ └── torrents.go │ ├── modext │ │ ├── peer │ │ │ └── peer.go │ │ └── torrent │ │ │ └── torrent.go │ └── service │ │ ├── torrent │ │ └── torrent.go │ │ └── tracker │ │ └── tracker.go ├── infra │ ├── config │ │ └── config.go │ ├── db │ │ └── db.go │ ├── oss │ │ └── oss.go │ └── util │ │ ├── convert │ │ └── convert.go │ │ ├── error │ │ ├── biz.go │ │ └── error.go │ │ ├── fs │ │ └── fs.go │ │ ├── http │ │ └── http.go │ │ └── tracker │ │ └── tracker.go └── router │ └── router.go ├── database └── migration │ └── create_torrents_table.sql ├── docker └── Dockerfile ├── docs ├── docs.go ├── swagger.json └── swagger.yaml ├── go.mod ├── go.sum ├── main.go ├── sqlboiler.toml └── storage └── public └── robots.txt /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .env 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/README.md -------------------------------------------------------------------------------- /app/controller/handler/auth/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/auth/auth.go -------------------------------------------------------------------------------- /app/controller/handler/chat/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/chat/chat.go -------------------------------------------------------------------------------- /app/controller/handler/comment/comment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/comment/comment.go -------------------------------------------------------------------------------- /app/controller/handler/forum/forum.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/forum/forum.go -------------------------------------------------------------------------------- /app/controller/handler/message/box.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/message/box.go -------------------------------------------------------------------------------- /app/controller/handler/message/message.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/message/message.go -------------------------------------------------------------------------------- /app/controller/handler/notice/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/notice/notice.go -------------------------------------------------------------------------------- /app/controller/handler/post/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/post/post.go -------------------------------------------------------------------------------- /app/controller/handler/subject/subject.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/subject/subject.go -------------------------------------------------------------------------------- /app/controller/handler/subtitle/subtitle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/subtitle/subtitle.go -------------------------------------------------------------------------------- /app/controller/handler/topic/topic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/topic/topic.go -------------------------------------------------------------------------------- /app/controller/handler/torrent/torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/torrent/torrent.go -------------------------------------------------------------------------------- /app/controller/handler/tracker/tracker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/tracker/tracker.go -------------------------------------------------------------------------------- /app/controller/handler/user/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/handler/user/user.go -------------------------------------------------------------------------------- /app/controller/middleware/cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/middleware/cors.go -------------------------------------------------------------------------------- /app/controller/request/auth/login.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/auth/login.go -------------------------------------------------------------------------------- /app/controller/request/auth/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/auth/register.go -------------------------------------------------------------------------------- /app/controller/request/auth/reset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/auth/reset.go -------------------------------------------------------------------------------- /app/controller/request/auth/send_code.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/auth/send_code.go -------------------------------------------------------------------------------- /app/controller/request/chat/create_chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/chat/create_chat.go -------------------------------------------------------------------------------- /app/controller/request/chat/update_chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/chat/update_chat.go -------------------------------------------------------------------------------- /app/controller/request/comment/create_comment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/comment/create_comment.go -------------------------------------------------------------------------------- /app/controller/request/comment/update_comment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/comment/update_comment.go -------------------------------------------------------------------------------- /app/controller/request/forum/create_forum.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/forum/create_forum.go -------------------------------------------------------------------------------- /app/controller/request/forum/update_forum.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/forum/update_forum.go -------------------------------------------------------------------------------- /app/controller/request/notice/create_notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/notice/create_notice.go -------------------------------------------------------------------------------- /app/controller/request/notice/update_notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/notice/update_notice.go -------------------------------------------------------------------------------- /app/controller/request/post/create_post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/post/create_post.go -------------------------------------------------------------------------------- /app/controller/request/post/update_post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/post/update_post.go -------------------------------------------------------------------------------- /app/controller/request/request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/request.go -------------------------------------------------------------------------------- /app/controller/request/subtitle/create_subtitle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/subtitle/create_subtitle.go -------------------------------------------------------------------------------- /app/controller/request/subtitle/update_subtitle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/subtitle/update_subtitle.go -------------------------------------------------------------------------------- /app/controller/request/topic/create_topic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/topic/create_topic.go -------------------------------------------------------------------------------- /app/controller/request/topic/update_topic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/topic/update_topic.go -------------------------------------------------------------------------------- /app/controller/request/torrent/create_torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/torrent/create_torrent.go -------------------------------------------------------------------------------- /app/controller/request/torrent/preupload_torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/torrent/preupload_torrent.go -------------------------------------------------------------------------------- /app/controller/request/torrent/update_torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/torrent/update_torrent.go -------------------------------------------------------------------------------- /app/controller/request/tracker/announce.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/tracker/announce.go -------------------------------------------------------------------------------- /app/controller/request/tracker/scrape.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/request/tracker/scrape.go -------------------------------------------------------------------------------- /app/controller/response/auth/mine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/auth/mine.go -------------------------------------------------------------------------------- /app/controller/response/chat/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/chat/chat.go -------------------------------------------------------------------------------- /app/controller/response/chat/chat_list.go: -------------------------------------------------------------------------------- 1 | package chat 2 | -------------------------------------------------------------------------------- /app/controller/response/comment/comment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/comment/comment.go -------------------------------------------------------------------------------- /app/controller/response/comment/comment_list.go: -------------------------------------------------------------------------------- 1 | package comment 2 | -------------------------------------------------------------------------------- /app/controller/response/forum/forum.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/forum/forum.go -------------------------------------------------------------------------------- /app/controller/response/forum/forum_list.go: -------------------------------------------------------------------------------- 1 | package forum 2 | -------------------------------------------------------------------------------- /app/controller/response/notice/notice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/notice/notice.go -------------------------------------------------------------------------------- /app/controller/response/notice/notice_list.go: -------------------------------------------------------------------------------- 1 | package notice 2 | -------------------------------------------------------------------------------- /app/controller/response/post/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/post/post.go -------------------------------------------------------------------------------- /app/controller/response/post/post_list.go: -------------------------------------------------------------------------------- 1 | package post 2 | -------------------------------------------------------------------------------- /app/controller/response/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/response.go -------------------------------------------------------------------------------- /app/controller/response/subtitle/subtitle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/subtitle/subtitle.go -------------------------------------------------------------------------------- /app/controller/response/subtitle/subtitle_list.go: -------------------------------------------------------------------------------- 1 | package subtitle 2 | -------------------------------------------------------------------------------- /app/controller/response/topic/topic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/topic/topic.go -------------------------------------------------------------------------------- /app/controller/response/topic/topic_list.go: -------------------------------------------------------------------------------- 1 | package topic 2 | -------------------------------------------------------------------------------- /app/controller/response/torrent/torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/torrent/torrent.go -------------------------------------------------------------------------------- /app/controller/response/tracker/announce.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/tracker/announce.go -------------------------------------------------------------------------------- /app/controller/response/tracker/scrape.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/controller/response/tracker/scrape.go -------------------------------------------------------------------------------- /app/domain/model/boil_queries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/boil_queries.go -------------------------------------------------------------------------------- /app/domain/model/boil_table_names.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/boil_table_names.go -------------------------------------------------------------------------------- /app/domain/model/boil_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/boil_types.go -------------------------------------------------------------------------------- /app/domain/model/mysql_upsert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/mysql_upsert.go -------------------------------------------------------------------------------- /app/domain/model/peers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/peers.go -------------------------------------------------------------------------------- /app/domain/model/snatchers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/snatchers.go -------------------------------------------------------------------------------- /app/domain/model/torrents.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/model/torrents.go -------------------------------------------------------------------------------- /app/domain/modext/peer/peer.go: -------------------------------------------------------------------------------- 1 | package peer 2 | -------------------------------------------------------------------------------- /app/domain/modext/torrent/torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/modext/torrent/torrent.go -------------------------------------------------------------------------------- /app/domain/service/torrent/torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/service/torrent/torrent.go -------------------------------------------------------------------------------- /app/domain/service/tracker/tracker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/domain/service/tracker/tracker.go -------------------------------------------------------------------------------- /app/infra/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/config/config.go -------------------------------------------------------------------------------- /app/infra/db/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/db/db.go -------------------------------------------------------------------------------- /app/infra/oss/oss.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/oss/oss.go -------------------------------------------------------------------------------- /app/infra/util/convert/convert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/util/convert/convert.go -------------------------------------------------------------------------------- /app/infra/util/error/biz.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/util/error/biz.go -------------------------------------------------------------------------------- /app/infra/util/error/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/util/error/error.go -------------------------------------------------------------------------------- /app/infra/util/fs/fs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/util/fs/fs.go -------------------------------------------------------------------------------- /app/infra/util/http/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/util/http/http.go -------------------------------------------------------------------------------- /app/infra/util/tracker/tracker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/infra/util/tracker/tracker.go -------------------------------------------------------------------------------- /app/router/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/app/router/router.go -------------------------------------------------------------------------------- /database/migration/create_torrents_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/database/migration/create_torrents_table.sql -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docs/docs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/docs/docs.go -------------------------------------------------------------------------------- /docs/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/docs/swagger.json -------------------------------------------------------------------------------- /docs/swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/docs/swagger.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/main.go -------------------------------------------------------------------------------- /sqlboiler.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/endpot/SpiderX-Backend/HEAD/sqlboiler.toml -------------------------------------------------------------------------------- /storage/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | --------------------------------------------------------------------------------