Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter(p []releases.ProductionV1) (int, []releases.ProductionV1)
Filter productions removes any records that are not suitable for Defacto2.
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.
Click to show internal directories.
Click to hide internal directories.