Documentation
¶
Index ¶
- type Film
- type FilmConnection
- type FilmEdge
- type Gender
- type PageInfo
- type People
- type PeopleConnection
- type PeopleEdge
- type Planet
- type PlanetConnection
- type PlanetEdge
- type Specie
- type SpecieConnection
- type SpecieEdge
- type Starship
- type StarshipConnection
- type StarshipEdge
- type Vehicle
- type VehicleClass
- type VehicleConnection
- type VehicleEdge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Film ¶
type Film struct { ID string `json:"id"` Title string `json:"title"` EpisodeID *int `json:"episode_id"` OpeningCrawl *string `json:"opening_crawl"` Director *string `json:"director"` Producer *string `json:"producer"` ReleaseDate *string `json:"release_date"` Species []*Specie `json:"species"` Starships []*Starship `json:"starships"` Vehicles []*Vehicle `json:"vehicles"` Characters []*People `json:"characters"` Planets []*Planet `json:"planets"` }
A Film resource is a single film.
type FilmConnection ¶
type FilmConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []FilmEdge `json:"edges"` TotalCount int `json:"totalCount"` }
A connection to a list of items.
type Gender ¶
type Gender string
The genders of people in the Star Wars universe.
func (Gender) MarshalGQL ¶
func (*Gender) UnmarshalGQL ¶
type PageInfo ¶
type PageInfo struct { HasNextPage bool `json:"hasNextPage"` HasPreviousPage bool `json:"hasPreviousPage"` StartCursor string `json:"startCursor"` EndCursor string `json:"endCursor"` }
Information about pagination in a connection.
type People ¶
type People struct { ID string `json:"id"` Name string `json:"name"` BirthYear *string `json:"birth_year"` EyeColor *string `json:"eye_color"` Gender *string `json:"gender"` HairColor *string `json:"hair_color"` Height *string `json:"height"` Mass *string `json:"mass"` SkinColor *string `json:"skin_color"` Homeworld *Planet `json:"homeworld"` Films []*Film `json:"films"` Species []*Specie `json:"species"` Starships []*Starship `json:"starships"` Vehicles []*Vehicle `json:"vehicles"` }
A People resource is an individual person or character within the Star Wars universe.
type PeopleConnection ¶
type PeopleConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []PeopleEdge `json:"edges"` TotalCount int `json:"totalCount"` }
A connection to a list of items.
type PeopleEdge ¶
An edge in a connection.
type Planet ¶
type Planet struct { ID string `json:"id"` Name string `json:"name"` Diameter *string `json:"diameter"` RotationPeriod *string `json:"rotation_period"` OrbitalPeriod *string `json:"orbital_period"` Gravity *string `json:"gravity"` Population *string `json:"population"` Climate *string `json:"climate"` Terrain *string `json:"terrain"` SurfaceWater *string `json:"surface_water"` Residents []*People `json:"residents"` Films []*Film `json:"films"` }
A Planet resource is a large mass, planet or planetoid in the Star Wars Universe, at the time of 0 ABY.
type PlanetConnection ¶
type PlanetConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []PlanetEdge `json:"edges"` TotalCount int `json:"totalCount"` }
A connection to a list of items.
type PlanetEdge ¶
An edge in a connection.
type Specie ¶
type Specie struct { ID string `json:"id"` Name string `json:"name"` Classification *string `json:"classification"` Designation *string `json:"designation"` AverageHeight *string `json:"average_height"` AverageLifespan *string `json:"average_lifespan"` EyeColors *string `json:"eye_colors"` HairColors *string `json:"hair_colors"` SkinColors *string `json:"skin_colors"` Language *string `json:"language"` Homeworld *Planet `json:"homeworld"` Vehicle []*Vehicle `json:"Vehicle"` Films []*Film `json:"films"` People []*People `json:"People"` }
A Species resource is a type of person or character within the Star Wars Universe.
type SpecieConnection ¶
type SpecieConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []SpecieEdge `json:"edges"` TotalCount int `json:"totalCount"` }
A connection to a list of items.
type SpecieEdge ¶
An edge in a connection.
type Starship ¶
type Starship struct { ID string `json:"id"` Name string `json:"name"` Model *string `json:"model"` StarshipClass *string `json:"starship_class"` Manufacturer *string `json:"manufacturer"` CostInCredits *string `json:"cost_in_credits"` Length *string `json:"length"` Crew *string `json:"crew"` Passengers *string `json:"passengers"` MaxAtmospheringSpeed *string `json:"max_atmosphering_speed"` HyperdriveRating *string `json:"hyperdrive_rating"` MGLT *string `json:"MGLT"` CargoCapacity *string `json:"cargo_capacity"` Consumables *string `json:"consumables"` Films []*Film `json:"films"` Pilots []*People `json:"pilots"` }
A Starship resource is a single transport craft that has hyperdrive capability.
type StarshipConnection ¶
type StarshipConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []StarshipEdge `json:"edges"` TotalCount int `json:"totalCount"` }
A connection to a list of items.
type StarshipEdge ¶
An edge in a connection.
type Vehicle ¶
type Vehicle struct { ID string `json:"id"` Name string `json:"name"` Model *string `json:"model"` VehicleClass *VehicleClass `json:"vehicle_class"` Manufacturer *string `json:"manufacturer"` Length *string `json:"length"` CostInCredits *string `json:"cost_in_credits"` Crew *string `json:"crew"` Passengers *string `json:"passengers"` MaxAtmospheringSpeed *string `json:"max_atmosphering_speed"` CargoCapacity *string `json:"cargo_capacity"` Consumables *string `json:"consumables"` Films []*Film `json:"films"` Pilots []*People `json:"pilots"` }
A Vehicle resource is a single transport craft that does not have hyperdrive capability.
type VehicleClass ¶
type VehicleClass string
The class of vehicle in the Star Wars universe.
const ( // Wheeled. VehicleClassWheeled VehicleClass = "WHEELED" // Repulsorcraft. VehicleClassRepulsocraft VehicleClass = "REPULSOCRAFT" )
func (VehicleClass) IsValid ¶
func (e VehicleClass) IsValid() bool
func (VehicleClass) MarshalGQL ¶
func (e VehicleClass) MarshalGQL(w io.Writer)
func (VehicleClass) String ¶
func (e VehicleClass) String() string
func (*VehicleClass) UnmarshalGQL ¶
func (e *VehicleClass) UnmarshalGQL(v interface{}) error
type VehicleConnection ¶
type VehicleConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []VehicleEdge `json:"edges"` TotalCount int `json:"totalCount"` }
A connection to a list of items.
type VehicleEdge ¶
An edge in a connection.