types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	GUID string `json:"guid" binding:"required"`
}

BuildRequest initiates the build of the feed

type BuildResponse

type BuildResponse struct {
	GUID string `json:"guid" binding:"required"`
	URL  string `json:"url" binding:"required"`
}

BuildResponse returns the resulting URL

type ProductionDetails

type ProductionDetails struct {
	Name  string `json:"name" binding:"required"`
	GUID  string `json:"guid" binding:"required"`
	Title string `json:"title,omitempty" `
}

ProductionDetails provides details about a production

type ProductionRequest

type ProductionRequest struct {
	Name    string `json:"name" binding:"required"`
	Title   string `json:"title" binding:"required"`
	Summary string `json:"summary" binding:"required"`
	GUID    string `json:"guid,omitempty"`
}

ProductionRequest defines the request

type ProductionResponse

type ProductionResponse struct {
	Name string `json:"name" binding:"required"`
	GUID string `json:"guid" binding:"required"`
}

ProductionResponse defines the request

type ProductionsResponse

type ProductionsResponse struct {
	List []ProductionDetails `json:"list" `
}

ProductionsResponse returns a list of productions

type StatusObject

type StatusObject struct {
	Status  int    `json:"status" binding:"required"`
	Message string `json:"message" binding:"required"`
}

StatusObject is used to report status and errors in an API request. The struct can be used as a response object or be treated as an error object

func (*StatusObject) Error

func (so *StatusObject) Error() string

Jump to

Keyboard shortcuts

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