Documentation ¶
Index ¶
- func DoRequest[V any](req *http.Request) (*V, error)
- type ApiVersionResponse
- type Client
- func (c *Client) AddDownloader(downloader *DownloadClient) (*DownloadClient, error)
- func (c *Client) ApiRequest(method, endpoint string, body io.Reader) (*http.Request, error)
- func (c *Client) DeleteDownloader(id int) error
- func (c *Client) GetDownloaders() (*[]DownloadClient, error)
- func (c *Client) UpdateDownloader(downloader *DownloadClient) (*DownloadClient, error)
- type DownloadClient
- type DownloadClientField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiVersionResponse ¶
type ApiVersionResponse struct {
Current string `json:"current"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddDownloader ¶
func (c *Client) AddDownloader(downloader *DownloadClient) (*DownloadClient, error)
func (*Client) ApiRequest ¶
func (*Client) DeleteDownloader ¶
func (*Client) GetDownloaders ¶
func (c *Client) GetDownloaders() (*[]DownloadClient, error)
func (*Client) UpdateDownloader ¶
func (c *Client) UpdateDownloader(downloader *DownloadClient) (*DownloadClient, error)
type DownloadClient ¶
type DownloadClient struct { Id int `json:"id,omitempty"` Name string `json:"name"` Implementation string `json:"implementation"` ConfigContract string `json:"configContract"` Protocol string `json:"protocol"` Fields []DownloadClientField `json:"fields"` Enable bool `json:"enable"` }
func (*DownloadClient) Equals ¶
func (a *DownloadClient) Equals(b *DownloadClient) bool
type DownloadClientField ¶
type DownloadClientField struct { Name string `json:"name"` Value interface{} `json:"value,omitempty"` }
func NewDownloadClientField ¶
func NewDownloadClientField(name string, value interface{}) DownloadClientField
Click to show internal directories.
Click to hide internal directories.