client

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

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.

func New

func New(remoteHost string) *Client

New makes a new Client.

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

Set the debug flag

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

func NewEsService(client *Client) *EsService

NewEs makes a new client for accessing Es services.

func (*EsService) Index

func (s *EsService) Index(ctx context.Context) (*Response, error)

func (*EsService) Media

func (s *EsService) Media(ctx context.Context) (*EsMediaResponse, error)

func (*EsService) Release

func (s *EsService) Release(ctx context.Context) (*EsReleaseResponse, error)

type MediaIndexRequest added in v0.10.2

type MediaIndexRequest struct {
	Start    int    `json:"start"`
	Limit    int    `json:"limit"`
	Type     string `json:"type"`
	Name     string `json:"name"`
	Display  string `json:"display"`
	Title    string `json:"title"`
	Source   string `json:"source"`
	SourceID string `json:"source_id"`
}

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

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 (*NzbsService) Tv

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

type Response

type Response struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
}

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

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 SearchIndexRequest struct {
	Start int    `json:"start"`
	Limit int    `json:"limit"`
	Type  string `json:"type"`
	Q     string `json:"q"`
	Name  string `json:"name"`
}

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

type Setting

type Setting struct {
	Name  string `json:"name"`
	Value bool   `json:"value"`
}

type SettingsBatch

type SettingsBatch struct {
	IDs   []string `json:"ids"`
	Name  string   `json:"name"`
	Value bool     `json:"value"`
}

Jump to

Keyboard shortcuts

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