Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQLDB ¶
MySQLDB is the database information
func (MySQLDB) GetFriends ¶
func (store MySQLDB) GetFriends(humanID int) ([]StarWarsChar, error)
GetFriends gets the friends of the passed humanID
type StarWarsChar ¶
type StarWarsChar struct { ID string Name string Friends []StarWarsChar AppearsIn []int HomePlanet string PrimaryFunction string }
StarWarsChar struct
var ( Luke StarWarsChar Vader StarWarsChar Han StarWarsChar Leia StarWarsChar Tarkin StarWarsChar Threepio StarWarsChar Artoo StarWarsChar HumanData map[int]StarWarsChar DroidData map[int]StarWarsChar StarWarsSchema graphql.Schema )
Our package variables
Click to show internal directories.
Click to hide internal directories.