Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReannounceMaxAttempts = 50 ReannounceInterval = 7 // interval in seconds )
Variables ¶
View Source
var ErrReannounceTookTooLong = errors.New("ErrReannounceTookTooLong")
View Source
var TrTrue = true
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Store(ctx context.Context, action domain.Action) (*domain.Action, error) List(ctx context.Context) ([]domain.Action, error) Get(ctx context.Context, req *domain.GetActionRequest) (*domain.Action, error) FindByFilterID(ctx context.Context, filterID int) ([]*domain.Action, error) Delete(ctx context.Context, req *domain.DeleteActionRequest) error DeleteByFilterID(ctx context.Context, filterID int) error ToggleEnabled(actionID int) error RunAction(ctx context.Context, action *domain.Action, release *domain.Release) ([]string, error) }
func NewService ¶
func NewService(log logger.Logger, repo domain.ActionRepo, clientSvc download_client.Service, bus EventBus.Bus) Service
Click to show internal directories.
Click to hide internal directories.