model

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	Id      Identity  `json:"id"`
	Created time.Time `json:"created"`
	Edited  time.Time `json:"edited"`
}

type Film

type Film struct {
	BaseModel
	Starships    []Identity `json:"starships"`
	Vehicles     []Identity `json:"vehicles"`
	Planets      []Identity `json:"planets"`
	Producer     string     `json:"producer"`
	Title        string     `json:"title"`
	Episode      Identity   `json:"episode"`
	Director     string     `json:"director"`
	OpeningCrawl string     `json:"opening_crawl"`
	Characters   []Identity `json:"characters"`
	Species      []Identity `json:"species"`
}

type Gender

type Gender string

type Identity

type Identity int64

type Person

type Person struct {
	BaseModel
	Name      string   `json:"name"`
	Gender    Gender   `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 Identity `json:"homeworld"`
	BirthYear string   `json:"birth_year"`
}

type Planet

type Planet struct {
	BaseModel
	Climate        string `json:"climate"`
	Name           string `json:"name"`
	Diameter       string `json:"diameter"`
	RotationPeriod string `json:"rotation_period"`
	Terrain        string `json:"terrain"`
	Gravity        string `json:"gravity"`
	OrbitalPeriod  string `json:"orbital_period"`
	Population     string `json:"population"`
}

type Specie

type Specie struct {
	BaseModel
	Classification  string     `json:"classification"`
	Designation     string     `json:"designation"`
	EyeColors       string     `json:"eye_colors"`
	People          []Identity `json:"people"`
	SkinColors      string     `json:"skin_colors"`
	Language        string     `json:"language"`
	Homeworld       *Identity  `json:"homeworld"`
	AverageLifespan string     `json:"average_lifespan"`
	AverageHeight   string     `json:"average_height"`
}

type Starship

type Starship struct {
	Pilots            []Identity `json:"pilots"`
	MGLT              string     `json:"MGLT"`
	StartshipClass    string     `json:"startship_class"`
	HyperdriveRatting string     `json:"hyperdrive_ratting"`
}

type Transport

type Transport struct {
	BaseModel
	Consumables          string `json:"consumables"`
	Name                 string `json:"name"`
	CargoCapacity        string `json:"cargo_capacity"`
	Passengers           string `json:"passengers"`
	MaxAtmospheringSpeed string `json:"max_atmosphering_speed"`
	Crew                 string `json:"crew"`
	Length               string `json:"length"`
	Model                string `json:"model"`
	CostInCredits        string `json:"cost_in_credits"`
	Manufacturer         string `json:"manufacturer"`
}

Jump to

Keyboard shortcuts

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