Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllEpisode = []Episode{ EpisodeNewhope, EpisodeEmpire, EpisodeJedi, }
View Source
var AllLengthUnit = []LengthUnit{ LengthUnitMeter, LengthUnitFoot, }
Functions ¶
func EncodeCursor ¶
Types ¶
type Character ¶
type Character interface { IsCharacter() GetID() string GetName() string GetFriends() []Character GetFriendsConnection() *FriendsConnection GetAppearsIn() []Episode }
type CharacterFields ¶
func (CharacterFields) GetAppearsIn ¶
func (cf CharacterFields) GetAppearsIn() []Episode
func (CharacterFields) GetFriends ¶
func (cf CharacterFields) GetFriends() []Character
func (CharacterFields) GetFriendsConnection ¶
func (cf CharacterFields) GetFriendsConnection() *FriendsConnection
func (CharacterFields) GetID ¶
func (cf CharacterFields) GetID() string
func (CharacterFields) GetName ¶
func (cf CharacterFields) GetName() string
type Droid ¶
type Droid struct { CharacterFields PrimaryFunction string }
func (Droid) IsCharacter ¶
func (Droid) IsCharacter()
func (Droid) IsSearchResult ¶
func (Droid) IsSearchResult()
type FriendsConnection ¶
func (*FriendsConnection) PageInfo ¶
func (f *FriendsConnection) PageInfo() PageInfo
func (*FriendsConnection) TotalCount ¶
func (f *FriendsConnection) TotalCount() int
type FriendsEdge ¶
type Human ¶
type Human struct { CharacterFields StarshipIds []string HeightMeters float64 Mass float64 }
func (*Human) Height ¶
func (h *Human) Height(unit LengthUnit) float64
func (Human) IsCharacter ¶
func (Human) IsCharacter()
func (Human) IsSearchResult ¶
func (Human) IsSearchResult()
type LengthUnit ¶
type LengthUnit string
const ( LengthUnitMeter LengthUnit = "METER" LengthUnitFoot LengthUnit = "FOOT" )
func (LengthUnit) IsValid ¶
func (e LengthUnit) IsValid() bool
func (LengthUnit) MarshalGQL ¶
func (e LengthUnit) MarshalGQL(w io.Writer)
func (LengthUnit) String ¶
func (e LengthUnit) String() string
func (*LengthUnit) UnmarshalGQL ¶
func (e *LengthUnit) UnmarshalGQL(v interface{}) error
type SearchResult ¶
type SearchResult interface {
IsSearchResult()
}
Click to show internal directories.
Click to hide internal directories.