Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
IsNotFound check whether given error is a not found error.
Types ¶
type Client ¶
type Client struct {
*putio.Client
Rss RssService
// contains filtered or unexported fields
}
Client is a Put.io client on top of github.com/putdotio/go-putio Add missing features like RSS management.
type Feed ¶
type Feed struct {
ID *uint `json:"id"`
Title string `json:"title"`
RssSourceURL string `json:"rss_source_url"`
ParentDirID uint `json:"parent_dir_id"`
DeleteOldFiles bool `json:"delete_old_files"`
DontProcessWholeFeed bool `json:"dont_process_whole_feed"`
Keyword string `json:"keyword"`
UnwantedKeywords string `json:"unwanted_keywords"`
Paused bool `json:"paused"`
Extract bool `json:"extract"`
FailedItemCount uint `json:"failed_item_count"`
LastError string `json:"last_error"`
LastFetch Time `json:"last_fetch"`
CreatedAt Time `json:"created_at"`
PausedAt Time `json:"paused_at"`
StartAt Time `json:"start_at"`
UpdatedAt Time `json:"updated_at"`
}
type InvalidStatusReceivedError ¶
type InvalidStatusReceivedError struct {
Status string
}
InvalidStatusReceivedError error from Putio when an update action is failed.
func (InvalidStatusReceivedError) Error ¶
func (e InvalidStatusReceivedError) Error() string
type RssService ¶
type RssService interface {
// List RSS feeds.
List(ctx context.Context) ([]*Feed, error)
// Get a RSS feed.
Get(ctx context.Context, id uint) (*Feed, error)
// Delete a RSS feed.
Delete(ctx context.Context, id uint) error
// Create an RSS feed.
Create(ctx context.Context, feed *Feed) (*Feed, error)
// Update an RSS feed.
Update(ctx context.Context, feed *Feed, id uint) error
// Pause given feed.
Pause(ctx context.Context, id uint) error
// Resume given feed.
Resume(ctx context.Context, id uint) error
}
RssService ...
Click to show internal directories.
Click to hide internal directories.