Documentation
¶
Index ¶
- type CreateInput
- type Job
- type State
- type Store
- func (s *Store) ByHash(ctx context.Context, hash string) (*Job, error)
- func (s *Store) ByID(ctx context.Context, id string) (*Job, error)
- func (s *Store) Close() error
- func (s *Store) MarkComplete(ctx context.Context, id, releaseID string, completed time.Time) error
- func (s *Store) MarkPestoComplete(ctx context.Context, id, nzbPath, password string, exitCode int, ...) error
- func (s *Store) MarkPestoStarted(ctx context.Context, id string, pid int, started time.Time) error
- func (s *Store) MarkReconciliationRequired(ctx context.Context, id string, exitCode *int, cause error) error
- func (s *Store) MarkRetryableFailure(ctx context.Context, id string, retryFrom State, cause error) error
- func (s *Store) MarkSubmitting(ctx context.Context, id string) error
- func (s *Store) MarkTransferStarted(ctx context.Context, id string) error
- func (s *Store) MarkTransferred(ctx context.Context, id string, bytes int64) error
- func (s *Store) NextRunnable(ctx context.Context) (*Job, error)
- func (s *Store) ReconcileInterruptedPosts(ctx context.Context) (int64, error)
- func (s *Store) Reserve(ctx context.Context, in CreateInput) (*Job, bool, error)
- func (s *Store) SetState(ctx context.Context, id string, state State) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type Job ¶
type Job struct {
ID string
TorrentHash string
ReleaseName string
SourceTracker string
SourcePath string
WorkspacePath string
InputPath string
SourceSize int64
BytesTransferred int64
State State
RetryFrom State
RetryCount int
LastError string
PestoPID int
PestoExitCode *int
PestoStartedAt *time.Time
PestoCompletedAt *time.Time
NZBPath string
ArchivePassword string
GoNZBReleaseID string
CreatedAt time.Time
UpdatedAt time.Time
CompletedAt *time.Time
}
type State ¶
type State string
const ( StateDiscovered State = "discovered" StateReserved State = "reserved" StateTransferring State = "transferring" StateTransferred State = "transferred" StatePosting State = "posting" StateNZBReady State = "nzb_ready" StateSubmitting State = "submitting" StateComplete State = "complete" StateFailed State = "failed" StateReconciliationRequired State = "reconciliation_required" )
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) MarkComplete ¶
func (*Store) MarkPestoComplete ¶
func (*Store) MarkPestoStarted ¶
func (*Store) MarkReconciliationRequired ¶
func (*Store) MarkRetryableFailure ¶
func (*Store) MarkTransferStarted ¶
func (*Store) MarkTransferred ¶
func (*Store) ReconcileInterruptedPosts ¶
Click to show internal directories.
Click to hide internal directories.