Documentation ¶
Overview ¶
Package prod obtains a Demozoo Production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrID = errors.New("demozoo production id cannot be a negative integer")
Functions ¶
Types ¶
type Production ¶
type Production struct { ID int64 // Demozoo production ID. Link string // Link URL to receive the request. Code int // Code is the HTTP status. Status string // Status is the HTTP status. Timeout time.Duration // Timeout in seconds for the HTTP request (default 5). }
Production API production request.
func (*Production) Get ¶
func (p *Production) Get() (prods.ProductionsAPIv1, error)
Get a production API link and normalises the results.
func (*Production) URL ¶
func (p *Production) URL() error
URL creates a productions API v.1 request link. example: https://demozoo.org/api/v1/productions/158411/?format=json
Click to show internal directories.
Click to hide internal directories.