add readme and agents.md

This commit is contained in:
2026-01-09 11:30:15 +03:00
parent cd8c2cbfbe
commit 6a9840c8da
2 changed files with 41 additions and 0 deletions

9
AGENTS.md Normal file
View File

@@ -0,0 +1,9 @@
## Role
Write code like a Go Senior Developer.
Use the best practices, write modern idiomatic code, and handle all errors.
Keep an eye on security.
## Context
- go 1.25.5

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# Trackers
Опрашивает ссылки со списками torrent-трекеров,
соединяет их в один список. Поддерживает кеширование,
http, file источники.
Учебный проект.
## Запуск
```shell
trackers --config config.toml
```
Получение списка трекеров:
```shell
curl http://127.0.0.1:8080/list
```
## Конфигурация
Источники для трекеров описываются в toml-конфиге:
```toml
port = 8080
sources = [
"https://example.com",
"file:///home/user/local-file.txt",
]
```