models

package
v0.0.0-...-0dc8709 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Film

type Film struct {
	ID     int        `json:"pk"`
	Fields FilmFields `json:"fields"`
}

type FilmFields

type FilmFields struct {
	Starships    []int  `json:"starships"`
	Edited       string `json:"edited"`
	Vehicles     []int  `json:"vehicles"`
	Planets      []int  `json:"planets"`
	Characters   []int  `json:"characters"`
	Species      []int  `json:"species"`
	Producer     string `json:"producer"`
	Title        string `json:"title"`
	Created      string `json:"created"`
	EpisodeID    int    `json:"episode_id"`
	Director     string `json:"director"`
	ReleaseDate  string `json:"release_date"`
	OpeningCrawl string `json:"opening_crawl"`
}

type Person

type Person struct {
	ID     int          `json:"pk"`
	Fields PersonFields `json:"fields"`
}

type PersonFields

type PersonFields struct {
	Edited    string `json:"edited"`
	Name      string `json:"name"`
	Created   string `json:"created"`
	Gender    string `json:"gender"`
	SkinColor string `json:"skin_color"`
	HairColor string `json:"hair_color"`
	Height    string `json:"height"`
	EyeColor  string `json:"eye_color"`
	Mass      string `json:"mass"`
	Homeworld int    `json:"homeworld"`
	BirthYear string `json:"birth_year"`
}

type Planet

type Planet struct {
	ID     int          `json:"pk"`
	Fields PlanetFields `json:"fields"`
}

type PlanetFields

type PlanetFields struct {
	Edited         string `json:"edited"`
	Climate        string `json:"climate"`
	SurfaceWater   string `json:"surface_water"`
	Name           string `json:"name"`
	Diameter       string `json:"diameter"`
	RotationPeriod string `json:"rotation_period"`
	Created        string `json:"created"`
	Terrain        string `json:"terrain"`
	Gravity        string `json:"gravity"`
	OrbitalPeriod  string `json:"orbital_period"`
	Population     string `json:"population"`
}

type Species

type Species struct {
	ID     int           `json:"pk"`
	Fields SpeciesFields `json:"fields"`
}

type SpeciesFields

type SpeciesFields struct {
	Edited          string `json:"edited"`
	Classification  string `json:"classification"`
	Name            string `json:"name"`
	Designation     string `json:"designation"`
	Created         string `json:"created"`
	EyeColors       string `json:"eye_colors"`
	People          []int  `json:"people"`
	SkinColors      string `json:"skin_colors"`
	Language        string `json:"language"`
	HairColors      string `json:"hair_colors"`
	Homeworld       int    `json:"homeworld"`
	AverageLifespan string `json:"average_lifespan"`
	AverageHeight   string `json:"average_height"`
}

type Starship

type Starship struct {
	ID     int            `json:"pk"`
	Fields StarshipFields `json:"fields"`
}

type StarshipFields

type StarshipFields struct {
	Pilots           []int  `json:"pilots"`
	MGLT             string `json:"MGLT"`
	StarshipClass    string `json:"starship_class"`
	HyperdriveRating string `json:"hyperdrive_rating"`
}

type Transport

type Transport struct {
	ID     int             `json:"pk"`
	Fields TransportFields `json:"fields"`
}

type TransportFields

type TransportFields struct {
	Edited              string `json:"edited"`
	Consumables         string `json:"consumables"`
	Name                string `json:"name"`
	Created             string `json:"created"`
	CargoCapacity       string `json:"cargo_capacity"`
	Passengers          string `json:"passengers"`
	MaxAtmosphericSpeed string `json:"max_atmospheric_speed"`
	Crew                string `json:"crew"`
	Length              string `json:"length"`
	Model               string `json:"model"`
	CostInCredits       string `json:"cost_in_credits"`
	Manufacturer        string `json:"manufacturer"`
}

type Vehicle

type Vehicle struct {
	ID     int           `json:"pk"`
	Fields VehicleFields `json:"fields"`
}

type VehicleFields

type VehicleFields struct {
	VehicleClass string `json:"vehicle_class"`
	Pilots       []int  `json:"pilots"`
}

Jump to

Keyboard shortcuts

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