filter

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

Filter productions removes any records that are not suitable for Defacto2.

func Next

func Next(url string) ([]releases.ProductionV1, string, error)

Next gets all the next page of productions.

Types

type ProductionList

type ProductionList struct {
	Count    int                     `json:"count"`    // Total productions
	Next     string                  `json:"next"`     // URL for the next page
	Previous interface{}             `json:"previous"` // URL for the previous page
	Results  []releases.ProductionV1 `json:"results"`
}

Production List result.

type Productions

type Productions struct {
	Filter     releases.Filter
	Count      int           // Total productions
	Finds      int           // Found productions to add
	Timeout    time.Duration // HTTP request timeout in seconds (default 5)
	Link       string        // URL link to send the request
	StatusCode int           // received HTTP statuscode
	Status     string        // received HTTP status
}

Productions API production request.

func (*Productions) Prods

func (p *Productions) Prods() ([]releases.ProductionV1, error)

Prods gets all the productions of a releaser and normalises the results.

Jump to

Keyboard shortcuts

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