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.
Index ¶
- type Client
- type Combined
- type Metrics
- type MetubeAddRequest
- type MetubeIndexResponse
- type MetubeRemoveRequest
- type MetubeService
- type NzbsAddRequest
- type NzbsAddResponse
- type NzbsDestroyRequest
- type NzbsHistoryRequest
- type NzbsIndexResponse
- type NzbsPauseRequest
- type NzbsRemoveRequest
- type NzbsResumeRequest
- type NzbsService
- func (s *NzbsService) Add(ctx context.Context, req *NzbsAddRequest) (*NzbsAddResponse, error)
- func (s *NzbsService) Destroy(ctx context.Context, req *NzbsDestroyRequest) (*Response, error)
- func (s *NzbsService) History(ctx context.Context, req *NzbsHistoryRequest) (*Response, error)
- func (s *NzbsService) Index(ctx context.Context) (*NzbsIndexResponse, error)
- func (s *NzbsService) Pause(ctx context.Context, req *NzbsPauseRequest) (*Response, error)
- func (s *NzbsService) Remove(ctx context.Context, req *NzbsRemoveRequest) (*Response, error)
- func (s *NzbsService) Resume(ctx context.Context, req *NzbsResumeRequest) (*Response, error)
- type QbittorrentsAddRequest
- type QbittorrentsAddResponse
- type QbittorrentsIndexResponse
- type QbittorrentsLabelRequest
- type QbittorrentsPauseRequest
- type QbittorrentsRemoveRequest
- type QbittorrentsResumeRequest
- type QbittorrentsService
- func (s *QbittorrentsService) Add(ctx context.Context, req *QbittorrentsAddRequest) (*QbittorrentsAddResponse, error)
- func (s *QbittorrentsService) Index(ctx context.Context) (*QbittorrentsIndexResponse, error)
- func (s *QbittorrentsService) Label(ctx context.Context, req *QbittorrentsLabelRequest) (*Response, error)
- func (s *QbittorrentsService) Pause(ctx context.Context, req *QbittorrentsPauseRequest) (*Response, error)
- func (s *QbittorrentsService) Remove(ctx context.Context, req *QbittorrentsRemoveRequest) (*Response, error)
- func (s *QbittorrentsService) Resume(ctx context.Context, req *QbittorrentsResumeRequest) (*Response, error)
- func (s *QbittorrentsService) Want(ctx context.Context, req *QbittorrentsWantRequest) (*Response, error)
- func (s *QbittorrentsService) Wanted(ctx context.Context, req *QbittorrentsWantedRequest) (*Response, error)
- type QbittorrentsWantRequest
- type QbittorrentsWantedRequest
- type Response
- 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) Metube *MetubeService Nzbs *NzbsService Qbittorrents *QbittorrentsService }
Client is used to access Pace services.
type MetubeAddRequest ¶
type MetubeIndexResponse ¶
type MetubeIndexResponse struct { *Response Result *metube.HistoryResponse `json:"result"` Total int64 `json:"total"` }
type MetubeRemoveRequest ¶
type MetubeService ¶
type MetubeService struct {
// contains filtered or unexported fields
}
func NewMetubeService ¶
func NewMetubeService(client *Client) *MetubeService
NewMetube makes a new client for accessing Metube services.
func (*MetubeService) Add ¶
func (s *MetubeService) Add(ctx context.Context, req *MetubeAddRequest) (*Response, error)
func (*MetubeService) Index ¶
func (s *MetubeService) Index(ctx context.Context) (*MetubeIndexResponse, error)
func (*MetubeService) Remove ¶
func (s *MetubeService) Remove(ctx context.Context, req *MetubeRemoveRequest) (*Response, error)
type NzbsAddRequest ¶
type NzbsAddResponse ¶ added in v0.10.2
type NzbsDestroyRequest ¶
type NzbsDestroyRequest struct {
ID int `json:"id"`
}
type NzbsHistoryRequest ¶
type NzbsHistoryRequest struct {
Hidden bool `json:"hidden"`
}
type NzbsIndexResponse ¶ added in v0.10.2
type NzbsIndexResponse struct { *Response Result *nzbget.GroupResponse `json:"result"` Total int64 `json:"total"` }
type NzbsPauseRequest ¶
type NzbsPauseRequest struct {
ID int `json:"id"`
}
type NzbsRemoveRequest ¶
type NzbsRemoveRequest struct {
ID int `json:"id"`
}
type NzbsResumeRequest ¶
type NzbsResumeRequest struct {
ID int `json:"id"`
}
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) Add ¶
func (s *NzbsService) Add(ctx context.Context, req *NzbsAddRequest) (*NzbsAddResponse, error)
func (*NzbsService) Destroy ¶
func (s *NzbsService) Destroy(ctx context.Context, req *NzbsDestroyRequest) (*Response, error)
func (*NzbsService) History ¶
func (s *NzbsService) History(ctx context.Context, req *NzbsHistoryRequest) (*Response, error)
func (*NzbsService) Index ¶
func (s *NzbsService) Index(ctx context.Context) (*NzbsIndexResponse, error)
func (*NzbsService) Pause ¶
func (s *NzbsService) Pause(ctx context.Context, req *NzbsPauseRequest) (*Response, error)
func (*NzbsService) Remove ¶
func (s *NzbsService) Remove(ctx context.Context, req *NzbsRemoveRequest) (*Response, error)
func (*NzbsService) Resume ¶
func (s *NzbsService) Resume(ctx context.Context, req *NzbsResumeRequest) (*Response, error)
type QbittorrentsAddRequest ¶
type QbittorrentsAddRequest struct {
URL string `json:"url"`
}
type QbittorrentsAddResponse ¶ added in v0.10.2
type QbittorrentsIndexResponse ¶ added in v0.10.2
type QbittorrentsPauseRequest ¶
type QbittorrentsPauseRequest struct {
Infohash string `json:"infohash"`
}
type QbittorrentsResumeRequest ¶
type QbittorrentsResumeRequest struct {
Infohash string `json:"infohash"`
}
type QbittorrentsService ¶
type QbittorrentsService struct {
// contains filtered or unexported fields
}
func NewQbittorrentsService ¶
func NewQbittorrentsService(client *Client) *QbittorrentsService
NewQbittorrents makes a new client for accessing Qbittorrents services.
func (*QbittorrentsService) Add ¶
func (s *QbittorrentsService) Add(ctx context.Context, req *QbittorrentsAddRequest) (*QbittorrentsAddResponse, error)
func (*QbittorrentsService) Index ¶
func (s *QbittorrentsService) Index(ctx context.Context) (*QbittorrentsIndexResponse, error)
func (*QbittorrentsService) Label ¶
func (s *QbittorrentsService) Label(ctx context.Context, req *QbittorrentsLabelRequest) (*Response, error)
func (*QbittorrentsService) Pause ¶
func (s *QbittorrentsService) Pause(ctx context.Context, req *QbittorrentsPauseRequest) (*Response, error)
func (*QbittorrentsService) Remove ¶
func (s *QbittorrentsService) Remove(ctx context.Context, req *QbittorrentsRemoveRequest) (*Response, error)
func (*QbittorrentsService) Resume ¶
func (s *QbittorrentsService) Resume(ctx context.Context, req *QbittorrentsResumeRequest) (*Response, error)
func (*QbittorrentsService) Want ¶
func (s *QbittorrentsService) Want(ctx context.Context, req *QbittorrentsWantRequest) (*Response, error)
func (*QbittorrentsService) Wanted ¶
func (s *QbittorrentsService) Wanted(ctx context.Context, req *QbittorrentsWantedRequest) (*Response, error)
type QbittorrentsWantRequest ¶
type QbittorrentsWantedRequest ¶
type QbittorrentsWantedRequest struct {
Infohash string `json:"infohash"`
}
type SettingsBatch ¶
Click to show internal directories.
Click to hide internal directories.