mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-21 23:48:11 -07:00
Move AnnounceResponse and ScrapeResponse to models
This commit is contained in:
@@ -9,6 +9,7 @@ package tracker
|
||||
import (
|
||||
"github.com/chihaya/chihaya/config"
|
||||
"github.com/chihaya/chihaya/drivers/backend"
|
||||
"github.com/chihaya/chihaya/tracker/models"
|
||||
)
|
||||
|
||||
type Tracker struct {
|
||||
@@ -41,3 +42,9 @@ func New(cfg *config.Config) (*Tracker, error) {
|
||||
backend: bc,
|
||||
}, nil
|
||||
}
|
||||
|
||||
type Writer interface {
|
||||
WriteError(error) error
|
||||
WriteAnnounce(*models.AnnounceResponse) error
|
||||
WriteScrape(*models.ScrapeResponse) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user