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.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Index ¶
- type Client
- type EsMediaResponse
- type EsReleaseResponse
- type EsService
- type MediaIndexRequest
- type MediaIndexResponse
- type MediaService
- type NzbsMovieResponse
- type NzbsService
- type NzbsTvResponse
- type ReleasesIndexRequest
- type ReleasesIndexResponse
- type ReleasesService
- type Response
- type RunicIndexRequest
- type RunicIndexResponse
- type RunicService
- type SearchAllResponse
- type SearchIndexRequest
- type SearchIndexResponse
- type SearchResponse
- type SearchResult
- type SearchService
- type Setting
- type SettingsBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Es *EsService Media *MediaService Nzbs *NzbsService Releases *ReleasesService Runic *RunicService Search *SearchService }
Client is used to access Pace services.
type EsMediaResponse ¶
type EsMediaResponse struct { *Response Result *elastic.IndexResponse `json:"result"` }
type EsReleaseResponse ¶
type EsReleaseResponse struct { *Response Result *elastic.IndexResponse `json:"result"` }
type EsService ¶
type EsService struct {
// contains filtered or unexported fields
}
func NewEsService ¶
NewEs makes a new client for accessing Es services.
type MediaIndexRequest ¶ added in v0.10.2
type MediaIndexResponse ¶
type MediaIndexResponse struct { *Response Result *search.MediaSearchResponse `json:"result"` Total int64 `json:"total"` }
type MediaService ¶
type MediaService struct {
// contains filtered or unexported fields
}
func NewMediaService ¶
func NewMediaService(client *Client) *MediaService
NewMedia makes a new client for accessing Media services.
func (*MediaService) Index ¶
func (s *MediaService) Index(ctx context.Context, req *MediaIndexRequest) (*MediaIndexResponse, error)
type NzbsMovieResponse ¶
type NzbsMovieResponse struct { *Response Result []nzbgeek.SearchResult `json:"result"` }
type NzbsService ¶
type NzbsService struct {
// contains filtered or unexported fields
}
func NewNzbsService ¶
func NewNzbsService(client *Client) *NzbsService
NewNzbs makes a new client for accessing Nzbs services.
func (*NzbsService) Movie ¶
func (s *NzbsService) Movie(ctx context.Context) (*NzbsMovieResponse, error)
func (*NzbsService) Tv ¶
func (s *NzbsService) Tv(ctx context.Context) (*NzbsTvResponse, error)
type NzbsTvResponse ¶
type NzbsTvResponse struct { *Response Result []nzbgeek.SearchResult `json:"result"` }
type ReleasesIndexRequest ¶ added in v0.10.2
type ReleasesIndexRequest struct { Start int `json:"start"` Limit int `json:"limit"` Type string `json:"type"` Text string `json:"text"` Year int `json:"year"` Season int `json:"season"` Episode int `json:"episode"` Group string `json:"group"` Author string `json:"author"` Resolution int `json:"resolution"` Source string `json:"source"` Uncensored bool `json:"uncensored"` Bluray bool `json:"bluray"` Verified bool `json:"verified"` Exact bool `json:"exact"` }
type ReleasesIndexResponse ¶
type ReleasesIndexResponse struct { *Response Result *search.ReleaseSearchResponse `json:"result"` Total int64 `json:"total"` }
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) Index ¶
func (s *ReleasesService) Index(ctx context.Context, req *ReleasesIndexRequest) (*ReleasesIndexResponse, error)
type RunicIndexRequest ¶ added in v0.10.2
type RunicIndexRequest struct { Start int `json:"start"` Limit int `json:"limit"` Type string `json:"type"` Text string `json:"text"` Year int `json:"year"` Season int `json:"season"` Episode int `json:"episode"` Group string `json:"group"` Website string `json:"website"` Resolution int `json:"resolution"` Source string `json:"source"` Uncensored bool `json:"uncensored"` Bluray bool `json:"bluray"` Verified bool `json:"verified"` Exact bool `json:"exact"` }
type RunicIndexResponse ¶
type RunicIndexResponse struct { *Response Result *search.RunicSearchResponse `json:"result"` Total int64 `json:"total"` }
type RunicService ¶
type RunicService struct {
// contains filtered or unexported fields
}
func NewRunicService ¶
func NewRunicService(client *Client) *RunicService
NewRunic makes a new client for accessing Runic services.
func (*RunicService) Index ¶
func (s *RunicService) Index(ctx context.Context, req *RunicIndexRequest) (*RunicIndexResponse, error)
type SearchAllResponse ¶
type SearchAllResponse struct { Media *SearchResponse `bson:"media" json:"media"` Tmdb *SearchResponse `bson:"tmdb" json:"tmdb"` Tvdb *SearchResponse `bson:"tvdb" json:"tvdb"` }
type SearchIndexRequest ¶ added in v0.10.2
type SearchIndexResponse ¶
type SearchIndexResponse struct { *Response Result *SearchAllResponse `json:"result"` Total int64 `json:"total"` }
type SearchResponse ¶
type SearchResponse struct { Results []*SearchResult `bson:"results" json:"results"` Error string `bson:"error" json:"error"` }
type SearchResult ¶
type SearchResult struct { ID string `bson:"id" json:"id"` Title string `bson:"title" json:"title"` Description string `bson:"description" json:"description"` Type string `bson:"type" json:"type"` Kind string `bson:"kind" json:"kind"` Date string `bson:"date" json:"date"` Source string `bson:"source" json:"source"` Image string `bson:"image" json:"image"` }
type SearchService ¶
type SearchService struct {
// contains filtered or unexported fields
}
func NewSearchService ¶
func NewSearchService(client *Client) *SearchService
NewSearch makes a new client for accessing Search services.
func (*SearchService) Index ¶
func (s *SearchService) Index(ctx context.Context, req *SearchIndexRequest) (*SearchIndexResponse, error)