24 lines
323 B
Go
24 lines
323 B
Go
|
package services
|
||
|
|
||
|
import (
|
||
|
"database/sql"
|
||
|
|
||
|
"github.com/maragudk/goqite"
|
||
|
)
|
||
|
|
||
|
type queues struct {
|
||
|
repos RepositoryService
|
||
|
|
||
|
RssIndex goqite.Queue
|
||
|
}
|
||
|
|
||
|
func NewQueues(conn *sql.DB) queues {
|
||
|
return queues{
|
||
|
repos: NewRepositoryService(conn),
|
||
|
RssIndex: *goqite.New(goqite.NewOpts{
|
||
|
DB: conn,
|
||
|
Name: "rss",
|
||
|
}),
|
||
|
}
|
||
|
}
|