add readme and agents.md
This commit is contained in:
9
AGENTS.md
Normal file
9
AGENTS.md
Normal 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
32
README.md
Normal 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",
|
||||||
|
]
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user