autobrr

package
v1.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Host   string
	APIKey string

	BasicUser string
	BasicPass string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(host string, apikey string) *Client

func (*Client) GetFilters

func (c *Client) GetFilters(ctx context.Context) ([]Filter, error)

func (*Client) SetBasicAuth added in v1.2.0

func (c *Client) SetBasicAuth(user, pass string)

func (*Client) Test

func (c *Client) Test(ctx context.Context) error

func (*Client) UpdateFilterByID

func (c *Client) UpdateFilterByID(ctx context.Context, filterID int, filter UpdateFilter) error

type Filter

type Filter struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	UpdatedAt time.Time `json:"updated_at"`
	CreatedAt time.Time `json:"created_at"`
}

type UpdateFilter

type UpdateFilter struct {
	Shows         string `json:"shows"`
	Albums        string `json:"albums"`
	Artists       string `json:"artists"`
	MatchReleases string `json:"match_releases,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL