Documentation ¶
Overview ¶
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Index ¶
- type Batch
- type BatchResult
- type Client
- type Indexer
- type IndexersCreateRequest
- type IndexersCreateResponse
- type IndexersDeleteRequest
- type IndexersDeleteResponse
- type IndexersIndexRequest
- type IndexersIndexResponse
- type IndexersRefreshRequest
- type IndexersService
- func (s *IndexersService) Create(ctx context.Context, req *IndexersCreateRequest) (*IndexersCreateResponse, error)
- func (s *IndexersService) Delete(ctx context.Context, req *IndexersDeleteRequest) (*IndexersDeleteResponse, error)
- func (s *IndexersService) Index(ctx context.Context, req *IndexersIndexRequest) (*IndexersIndexResponse, error)
- func (s *IndexersService) Refresh(ctx context.Context, req *IndexersRefreshRequest) (*Response, error)
- func (s *IndexersService) Settings(ctx context.Context, req *IndexersSettingsRequest) (*IndexersSettingsResponse, error)
- func (s *IndexersService) Show(ctx context.Context, req *IndexersShowRequest) (*IndexersShowResponse, error)
- func (s *IndexersService) Update(ctx context.Context, req *IndexersUpdateRequest) (*IndexersUpdateResponse, error)
- type IndexersSettingsRequest
- type IndexersSettingsResponse
- type IndexersShowRequest
- type IndexersShowResponse
- type IndexersUpdateRequest
- type IndexersUpdateResponse
- type ParserBatchRequest
- type ParserBatchResponse
- type ParserParseRequest
- type ParserParseResponse
- type ParserService
- func (s *ParserService) Batch(ctx context.Context, req *ParserBatchRequest) (*ParserBatchResponse, error)
- func (s *ParserService) Parse(ctx context.Context, req *ParserParseRequest) (*ParserParseResponse, error)
- func (s *ParserService) Title(ctx context.Context, req *ParserTitleRequest) (*ParserTitleResponse, error)
- type ParserTitleRequest
- type ParserTitleResponse
- type Popular
- type PopularIndexRequest
- type PopularIndexResponse
- type PopularMovie
- type PopularMovieId
- type PopularMoviesResponse
- type PopularResponse
- type PopularService
- type Release
- type ReleasesCreateRequest
- type ReleasesCreateResponse
- type ReleasesDeleteRequest
- type ReleasesDeleteResponse
- type ReleasesIndexRequest
- type ReleasesIndexResponse
- type ReleasesSearchRequest
- type ReleasesSearchResponse
- type ReleasesService
- func (s *ReleasesService) Create(ctx context.Context, req *ReleasesCreateRequest) (*ReleasesCreateResponse, error)
- func (s *ReleasesService) Delete(ctx context.Context, req *ReleasesDeleteRequest) (*ReleasesDeleteResponse, error)
- func (s *ReleasesService) Index(ctx context.Context, req *ReleasesIndexRequest) (*ReleasesIndexResponse, error)
- func (s *ReleasesService) Search(ctx context.Context, req *ReleasesSearchRequest) (*ReleasesSearchResponse, error)
- func (s *ReleasesService) Settings(ctx context.Context, req *ReleasesSettingsRequest) (*ReleasesSettingsResponse, error)
- func (s *ReleasesService) Show(ctx context.Context, req *ReleasesShowRequest) (*ReleasesShowResponse, error)
- func (s *ReleasesService) Update(ctx context.Context, req *ReleasesUpdateRequest) (*ReleasesUpdateResponse, error)
- type ReleasesSettingsRequest
- type ReleasesSettingsResponse
- type ReleasesShowRequest
- type ReleasesShowResponse
- type ReleasesUpdateRequest
- type ReleasesUpdateResponse
- type Response
- type Setting
- type SettingsBatch
- type SourcesIndexRequest
- type SourcesIndexResponse
- type SourcesParseRequest
- type SourcesParseResponse
- type SourcesReadRequest
- type SourcesReadResponse
- type SourcesSearchRequest
- type SourcesSearchResponse
- type SourcesService
- func (s *SourcesService) Index(ctx context.Context, req *SourcesIndexRequest) (*SourcesIndexResponse, error)
- func (s *SourcesService) Parse(ctx context.Context, req *SourcesParseRequest) (*SourcesParseResponse, error)
- func (s *SourcesService) Read(ctx context.Context, req *SourcesReadRequest) (*SourcesReadResponse, error)
- func (s *SourcesService) Search(ctx context.Context, req *SourcesSearchRequest) (*SourcesSearchResponse, error)
- func (s *SourcesService) Show(ctx context.Context, req *SourcesShowRequest) (*SourcesShowResponse, error)
- type SourcesShowRequest
- type SourcesShowResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchResult ¶ added in v0.4.3
type BatchResult struct { Title string `bson:"title" json:"title"` Info *parser.TorrentInfo `bson:"info" json:"info"` }
type Client ¶
type Client struct { // RemoteHost is the URL of the remote server that this Client should // access. RemoteHost string // Debug enables debug on Resty client Debug bool // Resty Resty *resty.Client // Services corresponding to the different endpoints (groups/routes) Indexers *IndexersService Parser *ParserService Popular *PopularService Releases *ReleasesService Sources *SourcesService }
Client is used to access Pace services.
type Indexer ¶
type Indexer struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` Name string `bson:"name" json:"name"` URL string `bson:"url" json:"url"` Active bool `bson:"active" json:"active"` Categories []int `bson:"categories" json:"categories"` ProcessedAt time.Time `bson:"processed_at" json:"processed_at"` }
type IndexersCreateRequest ¶
type IndexersCreateRequest struct {
Subject *Indexer `json:"subject"`
}
type IndexersCreateResponse ¶
type IndexersDeleteRequest ¶
type IndexersDeleteRequest struct {
ID string `json:"id"`
}
type IndexersDeleteResponse ¶
type IndexersIndexRequest ¶
type IndexersIndexResponse ¶
type IndexersRefreshRequest ¶ added in v0.4.1
type IndexersRefreshRequest struct {
ID string `json:"id"`
}
type IndexersService ¶
type IndexersService struct {
// contains filtered or unexported fields
}
func NewIndexersService ¶
func NewIndexersService(client *Client) *IndexersService
NewIndexers makes a new client for accessing Indexers services.
func (*IndexersService) Create ¶
func (s *IndexersService) Create(ctx context.Context, req *IndexersCreateRequest) (*IndexersCreateResponse, error)
func (*IndexersService) Delete ¶
func (s *IndexersService) Delete(ctx context.Context, req *IndexersDeleteRequest) (*IndexersDeleteResponse, error)
func (*IndexersService) Index ¶
func (s *IndexersService) Index(ctx context.Context, req *IndexersIndexRequest) (*IndexersIndexResponse, error)
func (*IndexersService) Refresh ¶ added in v0.4.1
func (s *IndexersService) Refresh(ctx context.Context, req *IndexersRefreshRequest) (*Response, error)
func (*IndexersService) Settings ¶
func (s *IndexersService) Settings(ctx context.Context, req *IndexersSettingsRequest) (*IndexersSettingsResponse, error)
func (*IndexersService) Show ¶
func (s *IndexersService) Show(ctx context.Context, req *IndexersShowRequest) (*IndexersShowResponse, error)
func (*IndexersService) Update ¶
func (s *IndexersService) Update(ctx context.Context, req *IndexersUpdateRequest) (*IndexersUpdateResponse, error)
type IndexersSettingsRequest ¶
type IndexersShowRequest ¶
type IndexersShowRequest struct {
ID string `json:"id"`
}
type IndexersShowResponse ¶
type IndexersUpdateRequest ¶
type IndexersUpdateResponse ¶
type ParserBatchRequest ¶ added in v0.4.3
type ParserBatchRequest struct {
Batch *Batch `json:"batch"`
}
type ParserBatchResponse ¶ added in v0.4.3
type ParserBatchResponse struct { *Response Result []*BatchResult `json:"result"` }
type ParserParseRequest ¶ added in v0.4.1
type ParserParseResponse ¶ added in v0.4.2
type ParserParseResponse struct { *Response Result *parser.TorrentInfo `json:"result"` }
type ParserService ¶ added in v0.4.1
type ParserService struct {
// contains filtered or unexported fields
}
func NewParserService ¶ added in v0.4.1
func NewParserService(client *Client) *ParserService
NewParser makes a new client for accessing Parser services.
func (*ParserService) Batch ¶ added in v0.4.3
func (s *ParserService) Batch(ctx context.Context, req *ParserBatchRequest) (*ParserBatchResponse, error)
func (*ParserService) Parse ¶ added in v0.4.1
func (s *ParserService) Parse(ctx context.Context, req *ParserParseRequest) (*ParserParseResponse, error)
func (*ParserService) Title ¶ added in v0.4.1
func (s *ParserService) Title(ctx context.Context, req *ParserTitleRequest) (*ParserTitleResponse, error)
type ParserTitleRequest ¶ added in v0.4.1
type ParserTitleResponse ¶ added in v0.4.2
type ParserTitleResponse struct { *Response Result *parser.TorrentInfo `json:"result"` }
type PopularIndexRequest ¶
type PopularIndexRequest struct {
Interval string `json:"interval"`
}
type PopularIndexResponse ¶
type PopularIndexResponse struct { *Response Result *PopularResponse `json:"result"` Total int64 `json:"total"` }
type PopularMovie ¶ added in v0.4.1
type PopularMovie struct { ID *PopularMovieId `bson:"_id" json:"id"` Count int `bson:"count" json:"count"` Verified int `bson:"verified" json:"verified"` }
type PopularMovieId ¶ added in v0.4.1
type PopularMoviesResponse ¶ added in v0.4.3
type PopularMoviesResponse struct { *Response Result []*PopularMovie `json:"result"` }
type PopularResponse ¶
type PopularService ¶
type PopularService struct {
// contains filtered or unexported fields
}
func NewPopularService ¶
func NewPopularService(client *Client) *PopularService
NewPopular makes a new client for accessing Popular services.
func (*PopularService) Index ¶
func (s *PopularService) Index(ctx context.Context, req *PopularIndexRequest) (*PopularIndexResponse, error)
func (*PopularService) Movies ¶ added in v0.4.3
func (s *PopularService) Movies(ctx context.Context) (*PopularMoviesResponse, error)
type Release ¶
type Release struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` Type string `bson:"type" json:"type"` Source string `bson:"source" json:"source"` Title string `bson:"title" json:"title"` Year int `bson:"year" json:"year"` Description string `bson:"description" json:"description"` Size int64 `bson:"size" json:"size"` View string `bson:"view" json:"view"` Download string `bson:"download" json:"download"` Infohash string `bson:"infohash" json:"infohash"` Season int `bson:"season" json:"season"` Episode int `bson:"episode" json:"episode"` Volume int `bson:"volume" json:"volume"` Group string `bson:"group" json:"group"` Website string `bson:"website" json:"website"` Verified bool `bson:"verified" json:"verified"` Widescreen bool `bson:"widescreen" json:"widescreen"` Unrated bool `bson:"unrated" json:"unrated"` Uncensored bool `bson:"uncensored" json:"uncensored"` Bluray bool `bson:"bluray" json:"bluray"` ThreeD bool `bson:"threeD" json:"threeD"` Resolution string `bson:"resolution" json:"resolution"` Encodings []string `bson:"encodings" json:"encodings"` Quality string `bson:"quality" json:"quality"` Raw *newznab.NZB `bson:"raw" json:"raw"` Info *parser.TorrentInfo `bson:"info" json:"info"` Downloader string `bson:"downloader" json:"downloader"` Checksum string `bson:"checksum" json:"checksum"` PublishedAt time.Time `bson:"published_at" json:"published_at"` }
type ReleasesCreateRequest ¶
type ReleasesCreateRequest struct {
Subject *Release `json:"subject"`
}
type ReleasesCreateResponse ¶
type ReleasesDeleteRequest ¶
type ReleasesDeleteRequest struct {
ID string `json:"id"`
}
type ReleasesDeleteResponse ¶
type ReleasesIndexRequest ¶
type ReleasesIndexResponse ¶
type ReleasesSearchRequest ¶
type ReleasesSearchResponse ¶
type ReleasesService ¶
type ReleasesService struct {
// contains filtered or unexported fields
}
func NewReleasesService ¶
func NewReleasesService(client *Client) *ReleasesService
NewReleases makes a new client for accessing Releases services.
func (*ReleasesService) Create ¶
func (s *ReleasesService) Create(ctx context.Context, req *ReleasesCreateRequest) (*ReleasesCreateResponse, error)
func (*ReleasesService) Delete ¶
func (s *ReleasesService) Delete(ctx context.Context, req *ReleasesDeleteRequest) (*ReleasesDeleteResponse, error)
func (*ReleasesService) Index ¶
func (s *ReleasesService) Index(ctx context.Context, req *ReleasesIndexRequest) (*ReleasesIndexResponse, error)
func (*ReleasesService) Search ¶
func (s *ReleasesService) Search(ctx context.Context, req *ReleasesSearchRequest) (*ReleasesSearchResponse, error)
func (*ReleasesService) Settings ¶
func (s *ReleasesService) Settings(ctx context.Context, req *ReleasesSettingsRequest) (*ReleasesSettingsResponse, error)
func (*ReleasesService) Show ¶
func (s *ReleasesService) Show(ctx context.Context, req *ReleasesShowRequest) (*ReleasesShowResponse, error)
func (*ReleasesService) Update ¶
func (s *ReleasesService) Update(ctx context.Context, req *ReleasesUpdateRequest) (*ReleasesUpdateResponse, error)
type ReleasesSettingsRequest ¶
type ReleasesShowRequest ¶
type ReleasesShowRequest struct {
ID string `json:"id"`
}
type ReleasesShowResponse ¶
type ReleasesUpdateRequest ¶
type ReleasesUpdateResponse ¶
type SettingsBatch ¶
type SourcesIndexRequest ¶
type SourcesIndexResponse ¶
type SourcesParseRequest ¶
type SourcesParseResponse ¶
type SourcesReadRequest ¶
type SourcesReadResponse ¶
type SourcesSearchRequest ¶
type SourcesSearchResponse ¶
type SourcesService ¶
type SourcesService struct {
// contains filtered or unexported fields
}
func NewSourcesService ¶
func NewSourcesService(client *Client) *SourcesService
NewSources makes a new client for accessing Sources services.
func (*SourcesService) Index ¶
func (s *SourcesService) Index(ctx context.Context, req *SourcesIndexRequest) (*SourcesIndexResponse, error)
func (*SourcesService) Parse ¶
func (s *SourcesService) Parse(ctx context.Context, req *SourcesParseRequest) (*SourcesParseResponse, error)
func (*SourcesService) Read ¶
func (s *SourcesService) Read(ctx context.Context, req *SourcesReadRequest) (*SourcesReadResponse, error)
func (*SourcesService) Search ¶
func (s *SourcesService) Search(ctx context.Context, req *SourcesSearchRequest) (*SourcesSearchResponse, error)
func (*SourcesService) Show ¶
func (s *SourcesService) Show(ctx context.Context, req *SourcesShowRequest) (*SourcesShowResponse, error)
type SourcesShowRequest ¶
type SourcesShowRequest struct {
ID string `json:"id"`
}