mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix: store filter actions (#54)
This commit is contained in:
parent
e496027798
commit
e1ef47e09a
10 changed files with 213 additions and 73 deletions
|
@ -1,6 +1,9 @@
|
|||
package domain
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
/*
|
||||
Works the same way as for autodl-irssi
|
||||
|
@ -13,10 +16,11 @@ type FilterRepo interface {
|
|||
FindByIndexerIdentifier(indexer string) ([]Filter, error)
|
||||
ListFilters() ([]Filter, error)
|
||||
Store(filter Filter) (*Filter, error)
|
||||
Update(filter Filter) (*Filter, error)
|
||||
Delete(filterID int) error
|
||||
StoreIndexerConnection(filterID int, indexerID int) error
|
||||
DeleteIndexerConnections(filterID int) error
|
||||
Update(ctx context.Context, filter Filter) (*Filter, error)
|
||||
Delete(ctx context.Context, filterID int) error
|
||||
StoreIndexerConnection(ctx context.Context, filterID int, indexerID int) error
|
||||
StoreIndexerConnections(ctx context.Context, filterID int, indexers []Indexer) error
|
||||
DeleteIndexerConnections(ctx context.Context, filterID int) error
|
||||
}
|
||||
|
||||
type Filter struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue